Sunday, September 27, 2015

Framework Changes in iOS 9.0

AV Foundation Framework: 

Provides a new API AVSpeechSynthesize that lets an app to specify voice by identifier, instead by language. We can also specify name and quality properties to get information about voice. 

AVKit framework 
Includes a PictureInPictureController And AVPlayerViewController class, which helps to participate in Picture In Picture. 

CloudKit Framework
IF one is having a cloud kit app, we can now use the CloudKit web services or CloudKit JS, a javascript library, to provide web interface to users to access the same data as the app. We must have a schema defined and created already for the web interface to fetch, and delete records, zones and subscription. 

Foundation Framework: 
- APIs for on demand loading of NSBundle resources
- Strings file support for context-dependant variable width strings 
- NSProcessInfo APIs for power and thermal management.

HealthKit framework:
- New support for tracking areas such as reproductive health and UV exposure. 
- New support for bulk deleting entries and deleted entries. 

Local Authentication framework:
- The ability to get the representation of current set of enrolled fingers so that app can change behavior when a finger is enrolled or removed.
- Support for canceling a user prompt from code
- Support for evaluating keychain access control lists and use of an authentication context in keychain calls. 
- Support for reusable Touch ID matches. 

MapKit framework
- MapKit supports querying transit ETAs and launching maps into transit directions
- Map Views support a 3D flyover mode 
- Annotations can be fully customized 
- Search results for MapKit and CLGeocoder can provide a timezone for the result 

PassKit framework 
- In iOS 9.0, Apple pay supports Discover cards and store debit and credit cards 
- Card issuers and payment networks can add cards to Apple Pay directly in their apps 

Safari Services Framework 
- SFSafariViewController can be used to display web content within the app. It shares cookies and other website data with Safari and has many of Safari’s great features such as auto fill and Safari reader. Unlike Safari itself, SFSafariViewController is tailored for displaying a single page, featuring a Done button that takes user back to where they were in the app. 

IF the app displays web content but does not customize content, then app can consider replacing the WKWebView or UIWebView based browsers with SFSafariViewController. 

UIKit framework changes
There are a number of UIKit changes, but most noticeable ones are

- The UIStackView class lets application to organize a set of subviews as a stack that can be arranged vertically or horizontally.
- A New UIApplicationDelegate method which lets to open a document in place instead of working with a copy of it. To support this feature, app needs to add the key LSSupportsOpeningDocumentsInPlace with a value of YES in the info.plist file. 
- The new behavior property UIUserNotificationAction, which lets to support text input from user’s notifications. 
- The new NSDataAsset class, which makes it easy to fetch contents tailored to the memory and graphics capabilities of the device.  

The below are the main deprecations in the iOS 9.0 SDK 

- Addressbook and Addressbook UI frameworks, instead application now need to use the Contacts and Contacts UI frameworks instead. 
- NSURLConnection is deprecated, instead, we need to use NSURLSession APIs. 


References:

No comments:

Post a Comment