It is necessary by pressing to move to the next controller. How to do it programmatically?
Closed due to the fact that the issue is too general for the participants Max Mikheyenko , Saidolim , Mstislav Pavlov , Visman , Vladimir Glinskikh 3 Oct '15 at 3:37 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
- Can you see what you already have in this direction? - Max Mikheyenko
- Try to write more detailed questions. Explain exactly what you see the problem, how to reproduce it, what you want to get as a result, etc. - Nicolas Chabanovsky ♦
- one@ Alexey, the text is very desirable to insert into the question as a text. - aleksandr barakin
- I do not see any problems in your code. What exactly happens when you press a button? - Max Mikheyenko
- and in order not to get up two times: if you put a breakpoint in the method, will it work? - Max Mikheyenko
|
1 answer
DetailYV * myNewVC = [self.storyboard instantiateViewControllerWithIdentifier :@"myNewViewController"]; if (![self.presentedViewController isBeingDismissed]){ //проверить не открыты ли другие VC, если открыты - закрыть их [[self presentingViewController] dismissViewControllerAnimated:YES completion:NULL]; } [self presentViewController:myNewVC animated:YES completion:nil ]; where myNewViewController - storyboardID
- Everything is working. But on the controller in which I turn there should be animation plotting. The schedule itself is. But no animation. - user191924
|