ios - present View controller not working -
ios - present View controller not working -
hi developing application in presenting new uiviewcontroller using
[self presentviewcontroller:vc animated:no completion:nil]; and in new presented view controller moving previous view using
[self presentviewcontroller:oldvc animated:no completion:nil]; which requirement there no guarantee view presented.
but issue when presenting old view controller goes viewdidload not displays old view controller remains on same view controller.
can tell me why happening thing going wrong??
you shouldn't go previous view controller presentviewcontroller:, because may cause never ending loop , if user app crash sooner or later. if animation required (i.e. animating bottom up), can create own dismissviewcontroller method, animate oldvc bottom , in completion block of animation phone call [self dismissviewcontrolleranimated:no completion:nil].
ios uiviewcontroller
Comments
Post a Comment