iOS Development Basics-Fragmentation 33

Source: Internet
Author: User

1:afnetworking Status bar Network request effect

Set didfinishlaunchingwithoptions directly inside the Appdelegate

[[Afnetworkactivityindicatormanager Sharedmanager] setenabled:yes];

This will automatically have an effect on the network in which the AF request is useful, without having to write separately in each request;

2:uiscrollview Offset 64 problem

In a VC if the first control is Uiscrollview, note that the first control is first addsubview on Vc.view. Then the view added to the ScrollView will have a 64 offset on the y point (i.e. navigationbar height 44+ the height of the battery bar 20).
This will not appear until after the iOS7.

Workaround:
Self.automaticallyadjustsscrollviewinsets = false; Self is your current VC.

If this scrollview is not the first one added to the Self.view. No 64 offsets will occur.

3: Message clears some basic knowledge

A:[[uiapplication sharedapplication] cancelalllocalnotifications]; Revoke all

B:[[uiapplication sharedapplication] cancellocalnotification:notification]; To remove a notificiation, to delete a specific notification, you can add a tag to the userinfo and traverse all the notification to delete it.

4:does not contain Bitcode

/USERS/**/FRAMEWORK/SDKS/POLYMERPAY/LIBRARY/MOBSTAT/LIB**SDK.A (**FORSDK.O) ' does not contain bitcode. You must rebuild it with Bitcode enabled (Xcodesetting enable_bitcode), obtain a updated library from the vendor, or DISA Blebitcode for this target. For Architecture arm64

Either let the third-party library support or turn off the target's bitcode option.

In fact, in Xcode 7, when we create a new iOS program, the Bitcode option is set to Yes by default. We can see this setting in the "Build Settings", "Enable bitcode" option. However, what we need to consider now is three platforms: Ios,mac Os,watchos. For Ios,bitcode is optional, for Watchos,bitcode is required, and Mac OS is not supported for Bitcode.

5: Friends Third party login Sina Weibo

WEIBOSDK Cannotauthinweiboapp Wbauthorizerequest

Appredirecturl Configuration Inconsistencies • •
Sign in to Sina Developer · The URL address in the application callback page, application-----advanced apps

The bundle identifier in Xcode is going to be the same.

iOS Development Basics-Fragmentation 33

Related Article

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.