There is a function in our application representative when the local notification executes the code given below and it may be the cause of the accident. That I think in the line where insertSubview does. How can I do this safely? Thank you.
- (zero) change controller: (UIViewController *) newController {self.currentController = newController; If ([self.window.subviews are included in the object: self.menuController.view]) {{self.window Insertviewview: newController.view belowSubview: self.menuController.view]; } Other {self.window.rootViewController = self.currentController; }}
If your view / view controller is a UINavigationViewController
, The way you should manage them, using the methods of that class: Generally, like things, if you have your view controller "controlled", you should not grab those scenes and Other scenes should be attached in the hierarchy.
Comments
Post a Comment