objective c - Reloading an iOS View Controller -


I have a single visual application that uses pars to create PFLogInViewController. Before reaching the BeaconViewController, the user must authenticate with Facebook - it's working fine. My issue is with the logout part - after the user's session is lost, I need to PFLogInViewController to appear again; I try to complete it by popping it on RootViewController But it is not solving the problem.

I have also referred the thread as one, but then there is no luck. / P>

  - (zero) viewDidAppear: (BOOL) animated {[Super ViewedAppear: Animated]; FRBCCI * request = [FBCF request form]; [Start with the request Finishing Handler: ^ (FBCACC Connection * Connection, Id Result, NSERR * Error) {If (! Error!) {[Self-Stretched View Controller Permission: Yes Completed: Zero]; [Self-photo request]; } And if (error) {NSLog (@ "Facebook session was invalid"); [Self logout button action: zero]; PFLogInViewController * Login = [[PFLogInViewController alloc] init]; Login.fields = PFLogInFieldsFacebook; Login.delegate = self; NSA * PermissionsArray = @ [@ "User_bout_me", @ "User_Relibrs", @ "User_Bridade", @ "User_Location"]; Login.facebookPermissions = permissionsArray; [Self-present ViewController: Animated Login: Yes Completed: Zero]; } Other {nslog (@ "some other error:% @", error); }}]; } - (IBAction) logout button action: (ID) sender {[Pfusor logout]; [Self. Navigation Controller PopToRootViewControllerAnimated: Yes]; }  

enter image details here

Try using:

  [self.navigationController popViewControllerAnimated: Yes];  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -