0

I have not started any of facebook view or method in appDidFinishLoadingWithOptions: but stil when I start app at first, then stop and restart it, it hangs. If i press the pause button i can see the stack trace shown in image.

Stack Trace Image

This code in method applicationDidBecomeActive was creating the issue. Anyone know what can be a possible reason. Removing this solved my issue.

- (void)applicationDidBecomeActive:(UIApplication *)application {

if (FBSession.activeSession.state == FBSessionStateCreatedOpening) {
[FBSession.activeSession close]; // so we close our session and start over
}

if (FBSession.activeSession.isOpen) {
}

}
NaXir
  • 2,373
  • 2
  • 24
  • 31

1 Answers1

0

Actually you have to navigate the page to another view controller so try this.

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];

UIViewController *splashController = [[UIViewController alloc]init];
UINavigationController *detailednewscontroller=[[UINavigationController alloc]initWithRootViewController:splashController];
[self.window setRootViewController:detailednewscontroller];
[self.window makeKeyAndVisible];
return YES;
}
Rahul Patel
  • 5,858
  • 6
  • 46
  • 72