Organize your notes with iOS 10-compatible data
1.Notification (Notification)
Since the introduction of notification, Apple has been updating the optimization, but these update optimizations are only a few, until now iOS 10 began to really do large refactoring, which allows developers to realize the usernotifications of ease of use, the function has become very powerful.
Previous notifications for IOS 9
1. When calling a method, some methods make it difficult to distinguish and write wrong methods, which makes the developer sometimes very distressed.
2. The path that the app captures notifications at run time and non-runtime is not consistent.
3. When applied to the foreground, remote notifications cannot be displayed directly, and further processing is required.
4. Notifications that have been issued cannot be updated, the content is not changed when it is issued, and only simple text presentation, extensibility is not very good at all.
Notifications starting with IOS 10
1. All relevant notifications have been consolidated into the Usernotifications.framework framework.
2. Added cancellation, update, mid-way can also modify the content of the notice.
3. The notification is not a simple text, you can add videos, pictures, custom notification display and so on.
4.iOS 10 is easier to manage than previous notifications and has been optimized for large scale, which is a good thing for developers.
5.iOS 10 starting with the optimization of permissions issues, it is easier to request permissions (local and remote notifications are integrated in one method).
IOS 10 Notification Learning Related Materials:
Usernotifications: Apple Official document – Apple official video-Apple official video-Apple official Videos 3
Https://developer.apple.com/reference/usernotifications
https://developer.apple.com/videos/play/wwdc2016/707/
https://developer.apple.com/videos/play/wwdc2016/708/
https://developer.apple.com/videos/play/wwdc2016/724/
The reconstruction of –ios-usernotifications frame analysis of live-time-seeing
https://onevcat.com/2016/08/notification/
WWDC2016 Session Note –ios 10 push notification new features
http://www.jianshu.com/p/9b720efe3779
2.ATS problem
The default non-HTTs network in IOS 9 is forbidden, and of course we can also set Nsallowsarbitraryloads to Yes to disable ATS. However, iOS 10 from January 1, 2017 Apple does not allow us to skip ATS through this method, that is, forcing us to use HTTPS, if not, submit the app may be rejected. But we can use Nsexceptiondomains to open HTTP for a specific domain name, which can be easily audited.
Reference study articles are as follows:
Questions about ATS in IOS 10
https://onevcat.com/2016/06/ios-10-ats/
3.iOS 10 Privacy Rights settings
IOS 10 began to more strict privacy rights, if you do not set up will directly crash, and now a lot of crash problems, the general solution is to add the corresponding key–value in the Info.plist file.
Access to the album key was added incorrectly, the correct is the Privacy-photo Library Usage Description.
The value above, circled the red line portion of the text is displayed to the user to see, must be added. At present the solution is basically the same, the reference study article is as follows:
Compatible with iOS 10: Configure the Get Privacy Data permission statement
http://www.jianshu.com/p/616240463a7a
4.Xcode 8 Run a bunch of useless logs solutions
We see, a new project of their own to print a pile of rotten seven or eight bad things, I think this should be the problem of Xcode 8, specifically not detailed research, the solution is to set os_activity_mode:disable such as:
Related Issues Connection:
StackOverflow Quiz
Http://stackoverflow.com/questions/37800790/hide-xcode-8-logs
5.iOS Uistatusbar Method Expires:
It is possible to use some of the Uistatusbar properties in our development, and these methods have expired in iOS 10 and need to be adapted if they are useful in your project (App development company Ty300.com). The above image can also be found, if you need to use Preferredstatusbar in iOS 10 such as:
IOS 10
- (uistatusbarstyle)preferredstatusbarstyle {
return uistatusbarstyledefault;
}
6.iOS Uicollectionview Performance Optimization
With the developer's Trust in Uicollectionview, the project uses a lot of places, but there are still some problems, such as sometimes lag, loading slow and so on. So iOS 10 is further optimized for Uicollectionview because the narrative is more complex and time-consuming, and here are just a few of the Learning reference articles:
WWDC2016 Session note –ios Uicollectionview new features
Manuscripts: Diligent Learning qkxue.net
Read the full version of compatible iOS 10 data to organize your notes
Organize your notes with iOS 10-compatible data