WDC2106 New Features of iOS10 and what developers should pay attention to, wdc2106ios10

Source: Internet
Author: User

WDC2106 New Features of iOS10 and what developers should pay attention to, wdc2106ios10

Last night, Apple held WWDC in San Francisco and watched the WWDC2016 live broadcast. We found that Apple, which became cautious and open, showed a lot of changes in the four new versions of the platform system. Of course, the most important thing is the great iOS. By using iOS10beta, apart from the ever-growing Siri, we can see that iMessage is more powerful than text, images, expressions, and voice messages, it also supports message special effects animation, dynamic graffiti messages, payments similar to red packet transfers, promotion and sharing links, and Media File Sending (... Is a mail okay ?); There are also improved map navigation, which supports voice and Didi chuxing. A bunch of self-built software with no sense of presence for a long time can finally be uninstalled, with more HomeKit applications and stranger call recognition functions; the design style of the notification bar, Notification Message format, and pull-on panel has changed from simple and translucent to silly, and I feel ugly!

Next, let's give a rough explanation of What's New in iOS10-What did WWDC2016 and the official documentation bring to developers?

 

  1 SiriKit

In iOS 10, developers can use the Siri SDK, which is undoubtedly the most important SDK for iOS 10. From then on, developers can use native APIs to provide voice search, voice-to-text messaging, and more common voice functions.

2 Proactive Suggestions

It seems that there is something integrated with CoreSpotlight.

3 Message App Extension

 

In iOS 10, developers can send messages. the app provides two types of App Extension: one table package (yes, the English name is Sticker Pack) and one custom interface for emoticon search, obviously, this is an API that makes emoticon app developers laugh and cry. MessagesExtension

4 User Communications

This API allows you to process local or remote user notifications based on certain conditions, such as time or geographical location. This is exceptionally powerful. It seems that you can intercept and replace the payload sent by your app.

5 Speech Recognition

The voice recognition API Converts audio streams into texts in real time.

6 App Search Enhancements

For CoreSpotlight enhancements, I am interested in Visualization of validation results.

7 widgets Enhancements

Apple provides widgetPrimaryVibrancyEffect and widgetSecondaryVibrancyEffect for customizing widgets in combination with the Widget experience under iOS 10 lockscreen.

8 CallKit

An important API. Following Apple's launch of the VoIP Certificate in 2014, the opening of the VoIP interface and a new App Extension are just the gospel of VOIP. It can be seen that Apple attaches great importance to VOIP. The integration of callkit framework VoIP applications with the iPhone user interface gives users a great experience. This framework is used to allow users to view and answer phone screen locks and manage contact phone views in mobile APP favorites and history.

Callkit also introduces application extensions that enable call blocking and call recognition. You can create an application extension to associate a phone number with a name, or tell the system to block a phone number. "That enable call blocking and caller identification. you can create an app extension that can associate a phone number with a name or tell the system when a number shocould be blocked. "The phone blacklist function is probably available.

9 App Extensions

As mentioned above, this is the top priority. iOS 10 has brought about the following seven new types of App Extension:

  • Call Directory
  • Intents
  • Intents UI
  • Messages
  • Notification Content
  • Notification Service
  • Sticker Pack

10 Improvement on third-party keyboards

It is very important that a third-party keyboard cannot easily have the function of holding down the earth key. Use handleInputModeListFromView: withEvent: to bring up the system keyboard list. At the same time, you can use documentInputMode to detect the language in the input context. You can adjust the input mode in a way similar to the alignment mode.

More content is better here: https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewIniOS/Articles/iOS10.html#//apple_ref/doc/uid/TP40017084-SW1

In addition, it should be noted that, like the previous versions of iOS, new sdks, new APIs are available, and old APIs are abandoned, so check your project carefully, modify the abandoned API as soon as possible to avoid incompatibility!

There is another issue that should be noted that iOS10 is more strict with privacy permission management, such as accessing cameras, microphones, and other hardware, which must be requested and allowed before use, or we should declare it in advance, although the previous requirements are not strict. In iOS10, for example, if a crash occurs, log:

IOS 10 crash 1:

* ** This app has crashed because it attempted to access privacy-sensitive data without a usage description. the app's Info. plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

You need to add a "NSContactsUsageDescription" Key and Value to the info. plist file to add a description.

I want to add the following content to info. plist of the application:

 

 

<Key> NSCameraUsageDescription </key>
<String> cameraDesciption </string>
<Key> NSContactsUsageDescription </key>
<String> contactsDesciption </string>
<Key> NSMicrophoneUsageDescription </key>
<String> microphoneDesciption </string>
<Key> NSPhotoLibraryUsageDescription </key>
<String> photoLibraryDesciption </string>

The string value can be written at will.

2. note that you should be careful when opening a project on Xcode8, especially for the xib process, do not save the changes at will. Otherwise, when you open the project with Xcode7, you will find an error, the xib saved by Xcode cannot be identified on xcode7!

3. After creating an iOS project on Xcode8 and iOS10SDK, we will see the Message Application and Sticker Pack Application. The latter is specially prepared for the iMessage table package, but no code is required.

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.