Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(IBAction)home:(id)sender{
- DetailYV * myNewVC = [self.storyboard instantiateViewControllerWithIdentifier :@"myNewViewController"];
- if (![self.presentedViewController isBeingDismissed]){ //проверить не открыты ли другие VC, если открыты - закрыть их
- [[self presentingViewController] dismissViewControllerAnimated:YES completion:NULL];
- }
- [self presentViewController:myNewVC animated:YES completion:nil ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement