ios - dismissViewControllerAnimated called from a UIAlertController sends me to the RootViewController -


i've been trying dismiss alert view calling dismissviewcontrolleranimated unfortunately i'm not getting want since sends me rooviewcontroller ("usersswippingviewcontrollerusers"/"users") instead of staying in view controller presented (chatviewcontroller)..

could please me out here. have attached screenshots of code i'm using call dismissviewcontrolleranimated , storyboard give rough idea of app looks like. view controller app taking me "usersswippingviewcontrollerusers"/"users" when should staying in/taking me chatviewcontroller.

screenshots:

this preview of app's storyboard

here code i'm using dismissviewcontrolleranimated in handler of uialertaction

don't use dismissviewcontrolleranimated method in uialertcontroller action. doing telling parent view controller instance dismissed (note why use self in closure!). , uialertcontroller have default approach dismissed automatically after button pressed.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -