ios - Dismissing view and routing to root view after successful login for PFUser -
i having trouble dismiss pfloginview after successful login. appears login successful, view not dismissing , routing root view. below loginviewcontroller, subclassing pfloginviewcontroller:
class loginviewcontroller: pfloginviewcontroller { override func viewdidload() { super.viewdidload() self.navigationitem.hidesbackbutton = true self.navigationcontroller?.navigationbarhidden = true } func loginviewcontroller(controller: pfloginviewcontroller, didloginuser user: pfuser) -> void { self.dismissviewcontrolleranimated(true, completion: nil) self.navigationcontroller?.poptorootviewcontrolleranimated(true) } }
i'd appreciate if experience parseui.framework help.
poptorootviewcontroller
automatically dismisses current viewcontroller, should sufficient:
func loginviewcontroller(controller: pfloginviewcontroller, didloginuser user: pfuser) -> void { self.navigationcontroller?.poptorootviewcontrolleranimated(true) }
Comments
Post a Comment