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,

baseviewcontroller.h baseviewcontroller.m

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.

mainvc == firstviewcontroller firstviewcontroller.h firstviewcontroller.m

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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -