objective c - Weird Behavior on dismissing Modal View Controller -
first post, have been lurking while reading. have app needs access contacts on device , works ok, when dismiss control, goes away lose other elements on app.
i have view controller contains 1 main view, has navigation bar header , tab bar footer. have overlay view contains button trigger address book component. when dismiss happens, tab bar , nav bar disappear component!
this code using show address book:
code: abpeoplepickernavigationcontroller *picker = [[abpeoplepickernavigationcontroller alloc] init]; picker.peoplepickerdelegate = self; [self presentmodalviewcontroller:picker animated:yes]; , dismissed this:
code: [self dismissmodalviewcontrolleranimated:yes]; pretty simple stuff. cause dismiss command more remove modal controller?
thanks
try presenting modal controller tabbarcontroller [self.tabbarcontroller presentmodal...];
Comments
Post a Comment