Я создал предупреждение следующим образом:UIAlertView и UIAlertController название не отображается
// UIAlertView
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"WARNING" message:@"Are you sure you want to quit ?" delegate:nil cancelButtonTitle:@"Confirm" otherButtonTitles:@"Cancel", nil];
[alertView show];
// or UIAlertController
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"WARNING" message:@"Are you sure you want to quit ?" preferredStyle:UIAlertControllerStyleAlert];
[alertController addAction:[UIAlertAction actionWithTitle:@"Confirm" style:UIAlertActionStyleDefault handler:NULL]];
[alertController addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:NULL]];
[self presentViewController:alertController animated:YES completion:NULL];
Но оба эти эффекты, как это:
Я пытаюсь войти название предупреждения, но результат is null:
Как это исправить?
Перед тем, как попытаться исправить, если для 'UIAlertView': Не используйте его. Это устарело в iOS 8. – FelixSFD
Вы используете setTitle где-то в своем коде? – vishnuvarthan
goto Продукт -> очистите и попробуйте еще раз – KSR