iOS friends social sharing u-share sharing Panel does not display problems (basic configuration without errors)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.