To visualize the window first
[Self.window makekeyandvisible];
Add Friend League Share
[[Umsocialmanager Defaultmanager] openlog:yes];
[Umsocialglobal Shareinstance].isusingwatermark = YES;
[Umsocialglobal shareinstance].isclearcachewhengetuserinfo = NO;
/* Set AU Appkey */
[[Umsocialmanager Defaultmanager] setumsocialappkey:@ "**************"];
[UIApplication sharedapplication].statusbarstyle = uistatusbarstylelightcontent;
[[UIApplication sharedapplication] setstatusbarhidden:no];
And finally the root path setting
Self.window = [[UIWindow alloc] initwithframe:[[uiscreen mainscreen] bounds]];
Self.roottabbarcontroller = [[Roottabbarcontroller alloc] init];
Self.window.rootViewController = Self.roottabbarcontroller;
return YES;
Note that in the first initialization of the application window and then initializing the Friend Alliance finally set the root controller, if you first set up the root controller and then initialize the friend union will cause the Friend Alliance sharing initialization Invalid cannot popup panel Appdelegate class inside the main is to find the application of the root controller, according to the above code to write can
iOS friends social sharing u-share sharing Panel does not display problems (basic configuration without errors)