ios - Warning: Attempt to present <UINavigationController: 0x753cb60> on <UINavigationController: 0x8293490> whose view is not in the window hierarchy -
i using uinavigationcontroller navigate page. when click on submit button page needs redirected uinavigationcontroller. unfortunately getting below error:
warning: attempt present on view not in window hierarchy!
here code below navigate after clicking on submit
uinavigationcontroller *questionnairenavcontroller = [self.storyboard instantiateviewcontrollerwithidentifier:@"dlprojectstasksubtasks"]; [questionnairenavcontroller setmodaltransitionstyle:uimodaltransitionstylecrossdissolve]; dlprojectstasksubtasks *qvc = (dlprojectstasksubtasks *)[questionnairenavcontroller topviewcontroller]; [qvc.tableview reloaddata]; [self presentviewcontroller:questionnairenavcontroller animated:yes completion:nil]; flow of page starting point uinavigationcontroller followed table view, in table view trying edit record. when click on submit button in add page error occurs please me out guys
should not doing [self dismissviewcontrolleranimated:yes completion:nil] ?
Comments
Post a Comment