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
Post a Comment