1

I am trying to integrate Twitter and Facebook into my app.

I tried this demo, and it works only when I try it in a separate project. When I try it in my project it does not work (the actions do not integrate to the buttons).

It shows this message to me:

2013-06-25 11:50:39.885 app[1255:19703] Warning: Attempt to present <SLFacebookComposeViewController: 0xa199280> on <ViewController: 0x9497b60> whose view is not in the window hierarchy!

Najd
  • 35
  • 1
  • 8

1 Answers1

0

Refer this link:

stackoverflow

Quoted from the above link:

-(void) application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
       self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
       self.blankviewController = [[blankPageViewController alloc] initWithNibName:@"blankPageViewController" bundle:nil];
       self.window.rootViewController = self.blankviewController;
       [self.window makeKeyAndVisible];
}
Community
  • 1
  • 1
Anil
  • 2,430
  • 3
  • 37
  • 55
  • I guess the problem is related to the library not to the viewcontroller .When I added Social.framwork target the xcode did not add it Thank you – Najd Jun 25 '13 at 10:04