ios - how to add four buttons in 1 row using UIAction Sheet -
i new in ios. using action sheet in project.i want ask can in order add 4 buttons in uiaction sheet.
here try code showing 4 buttons on 4 different rows:
(ibaction)shownormalactionsheet:(id)sender { uiactionsheet *actionsheet = [[uiactionsheet alloc] initwithtitle:@""?" delegate:self cancelbuttontitle:@"cancel" destructivebuttontitle:@"delete it" otherbuttontitles:@"copy", @"move", @"duplicate", nil]; [actionsheet showinview:self.view]; }
uiactionsheet has been deprecated , no longer working in ios8. uiactionsheet replaced uialertcontroller. issue might due update uialertcontroller apple documentation
uialertcontroller gives full power customize alertview. if have app in app store using uialertview, app broken in ios 8.
how use uialertcontroller check demo on github alertviewcontroller ios8 demo
a library custom views alertviewcontroller here
Comments
Post a Comment