ios - Present Modal view over Modal view not showing -
i've had on , can't find answer this. i'm presenting modal view from:
- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { [tableview deselectrowatindexpath:indexpath animated:yes]; icobservationeditcontroller *controller = [[icobservationeditcontroller alloc] initwithobservation:[self.observations objectatindex:indexpath.row]]; uinavigationcontroller *navcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:controller]; navcontroller.navigationbar.barstyle = uibarstyleblackopaque; navcontroller.navigationbar.tintcolor = [uicolor graycolor]; [self.editcontroller presentmodalviewcontroller:navcontroller animated:yes]; }
once presented, option want present text message on top messageui
framework:
mfmessagecomposeviewcontroller *controller = [[mfmessagecomposeviewcontroller alloc] init]; if([mfmessagecomposeviewcontroller cansendtext]) { nslog(@"presented"); //code here text body controller.recipients = [nsarray arraywithobjects:@"", nil]; controller.messagecomposedelegate = self; [self.editcontroller presentmodalviewcontroller:controller animated:yes]; }
the debugger confirms i'm receiving event, no view presented. code correct have used exact same code in other apps when not in modal view.
the uikit won't allow there workarounds. article should you.
Comments
Post a Comment