Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIAlertView and UIActionSheet not displaying properly in iOS 8

UIAlertView and UIActionSheet not displaying properly in iOS 8, its hiding the view controller, also In alert view title is not displaying. I am running the app from Xcode 5.1.1.

Action Sheet

Alert View

like image 230
Surfer Avatar asked Sep 20 '14 10:09

Surfer


1 Answers

Did you added any category for ViewController in your application. like below shown

@implementation UIViewController (CustomeAction)
- (void)setTitle:(NSString *)title{
// YOU CODE///
}
@end

This may the issue. I have solved by removing this category - (void)setTitle:(NSString *)title.

Note: From iOS 8, UIAlertViewController is inherited from UIViewController. If you use category method, it will be effect on UIAlertView & UIActionSheet titles.

You can refer apple docs at UIAlertController Class Reference

like image 63
Nookaraju Avatar answered Nov 05 '22 10:11

Nookaraju