ios - UIAlertView button text does not display -
i'm attempting simple alert message display in app. using code recommended apple, every time cancel button displays without text. don't believe have other code override default display of alert.
screenshot can seen here.
here's code display alert:
nsstring *alertmessage = [nsstring stringwithformat:@"no results found '%@'.", @"test"]; uialertview *thealert = [[uialertview alloc] initwithtitle:@"search error" message:alertmessage delegate:nil cancelbuttontitle:@"cancel" otherbuttontitles:nil]; [thealert show];
when use nslog(@"%@", [thealert buttontitleatindex:0]);
log title, outputs "cancel" fine.
i want comment, have low reputation it... anyway, had simmilar issue uibutton, , figured out, bug in xcode 6. have tried xcode 5?
Comments
Post a Comment