ios - Handling UIActionSheet -
ios - Handling UIActionSheet -
in application should have mutual uinavigationbar
hold 3 uibarbutton
items actions. so, instead of writting code in every viewcontrollers, have decided create on baseviewcontroller
can subclass application viewcontrollers,
after, implementing uinavigationbar
showing items fine. in 1 of bar button item in basevc nowadays uiactionsheet
, when select this, need selected index basevc mainvc. so, have created custom protocol method pass selected action sheet index mainvc basevc.
this scenario getting works. but, if add together 1 or more uiactionsheet
in firstvc getting called , works fine. but, disables basevc's actionsheet delegate call. means, not allowing phone call delegate on basevc,
- (void)actionsheet:(uiactionsheet *)actionsheet clickedbuttonatindex:(nsinteger)buttonindex;
above delegate not fired in basevc. how handle both uiactionsheet
different vc.
any thought regarding this?
in case have invoke manually using logic in firstviewcontroller method call. can calling [super actionsheet:actionsheet clickedbuttonatindex:buttonindex]
when know phone call meant handled basevc.
ios objective-c uiactionsheet uiactionsheetdelegate
Comments
Post a Comment