Saturday, 15 March 2014

UIAlertview title half hidden - objective c -



UIAlertview title half hidden - objective c -

i trying utilize next alert when click row in table. alert title half hidden. can please allow me know how create entire title visible ?

uiviewforvoteselection = [[uialertview alloc] initwithtitle:[nsstring stringwithformat:@"please amend member's selection selecting 1 of options"] message:@"" delegate:self cancelbuttontitle:@"cancel" otherbuttontitles:@"yes",@"no" ,@"abstain",@"not selecting",@"not present",nil]; [uiviewforvoteselection show];

the problem not title, title "please" partially hidden. cause number of buttons added alert. if want maintain alert should provide bigger frame. suggest utilize of actionsheet kind of ui.

you can utilize next uialertviewdelegate method :

- (void)willpresentalertview:(uialertview *)alertview{ cgrect frame = <your_frame> alertview.frame = frame; }

objective-c uialertview title

No comments:

Post a Comment