New features for IOS 9

Source: Internet
Author: User
Tags uikit spritekit

This article introduces a brief introduction to IOS9 development, and the devices now released will be powered by iOS9. This article also lists articles that describe the new features in detail.

ipad Multi-line Potentiation

The iOS9 uses slider over, Split View, and picture on picture to enhance the multi-threaded user experience on the ipad. The Slide over feature allows users to launch a second app. The Split View property allows users to use two apps on ipad Air2. Picture-in-picture (PiP) can display a hover box on another app's windows to see the video.

The user can decide when to display two apps on the screen. Developers can't control it. While split view and slide over are user-controlled, developers still need to do a lot to secure the multi-threaded experience.

    • The key is that apps need to use system resources efficiently so they can run better when sharing systems with other apps. In the case of low memory, the system exits a memory-intensive app.
    • If not, make sure to use size classes so that the app will show up well on split screen.

In Split view and slide over, the user controls whether Pip is used to display video on another running app. If playing a video is not your primary feature, you do not need to do extra work for the PIP experience.

Use Avkit or AV Foundation APIs if you want to experience picture-in-picture. The API for playing videos defined in the Media player framework has been deprecated in iOS9, and they do not support PIP.

Search

Search in iOS9 gives users a new way to access information, and when your content can be searched, users can access content in your app through Spotlight, Safari search results, Handoff, and Siri. Using the search-related APIs, you can decide which content is indexed, what is displayed in the search results, and where the user jumps to the app or website when clicked.

Privacy protection is a basic property of iOS9 search. To protect user privacy while providing a good search experience, iOS9 did the following

    • A private device-side index. Each device has a private index information and they will not be shared to Apple or synced to other devices. When you create an index on a user device, only that user will see the search results.
    • Apple server-side index. The server-side index stores only the content that is public and what is appropriate on your site.

IOS9 provides the following APIs to help you search for content:

    • The Nsuseractivity class provides a number of new methods and properties that let you create content. All apps can use the Ususeractivity API to create useful content for users.
    • The Core Spotlight Framework provides an index of APIs to add app-related content on the device side and can jump to the app-specific interface.
    • Web markup can help you enhance the user experience by allowing web-related content to be searched.
    • Global links can replace HTTP or HTTPS links. The global link is applicable for all users. If the user installs the app, the link directly brings the user into the app. If the app is not installed, this link opens the site in Safari.

Game

IOS9 has made some technical enhancements that make it easier to implement graphics and sound properties for your game. Users can use the upper library for rapid development, or they can use the underlying library to control the GPU themselves.

Gameplaykit

Gameplaykit (Gameplaykit.framword) provides the basic techniques for creating games. A game can be completed using Gameplaykit combined with the graphics engine of the upper layer (e.g. Scenekit alive Spritekit). This framework provides a modular structure to create games.

    • Immediately tool
    • entiey-better function of the game components
    • State machine-Make your code more concise

Gameplaykit also contains common game algorithms, so you can spend less time on algorithms and more time on the game mechanics. For example, some of the following algorithms in Gameplaykit:

    • Intelligently calculates the maximum minimum value in a round battle game
    • Automatically simulate mobile behavior
    • Rule systems: Data-based game logic, fuzzy inference, and behavior.

Model I/O

Model I/O (modelio.framework) provides a system-level 3D model resource. There are many things you can do with this framework, such as:

    • Import grid data, material descriptions, lighting and camera settings, and other popular software or game engine generated data files.
    • Process or create the following data: Put the light information into the grid, or create a texture of the sky.
    • Collaborate with Metalkit, Glkit,scenekit API to efficiently load data to GPU rendering
    • Export or produce data in multiple formats

Metalkit

Metalkit (metalkit.framework) offers a number of methods and classes to reduce the difficulty of creating metal apps. Metalkit supports the following three blocks of development:

    • Texture loading helps you simply load textures from a variety of resources. Supports commonly used PNG and JPEG, as well as KTX and PVR.
    • Model processing provides a metal-based approach to make interacting with models easier. You can also use these methods to pass data between the model and the grid.
    • Interface Management provides a standard implementation of the metal interface. This can save a lot of code for graphic rendering

Metal Performance Shaders

Metal Performance Shaders (metalperformanceshaders.framework) provides a graphical calculation method that is convenient to use in the Metal app. It makes efficient use of iOS GPUs that support metal.

It will be equipped with all the supported hardware and does not require separate code for the special iOS GPU. Metalperformanceshader objects can be seamlessly linked to the metal app.

The framework also provides the following features:

    • Gaussian blur-Provided by the Mpsimagegaussianblur class
    • Picture histogram-Provided by the Mpsimagehistogram class
    • Sobel Edge Detection-provided by the Mpsimagesobel class

Metal new features

Metal (metal.framework) has added some new features to make app graphics rendering even better and more efficient. Includes the following features:

    • Enhanced metal shading Language and Metail standard library
    • A wider range of computed coloring
    • Added a few texture templates
    • Enhance Shadow Quality

Scenekit new Features

SceneKit (Scenekit.framework) new features in iOS9, including:

    • Supports metal rendering. Can view Scnview and Scnscenerenderer classes
    • A new scene editor has been added to Xcode. The game can be created faster.
    • Position audio. Use the Scnaudioplayer and Scnnode classes to add audio to play automatically based on location.

Spritekit new Features

SpriteKit (Spritekit.framework) new features in iOS9, including:

    • Supports metal rendering. On devices that support metal, metal rendering is automatically used, even if OpenGL ES is used.
    • The scene editor and the new action editor are enhanced in Xcode. You can create games faster.
    • Camera focus (viewing Skcameranode objects) makes it easier to create scrollable games.
    • position Audio .

APP thinning

APP thining automatically helps you develop and publish optimized installation packages for different platforms. The APP thinning includes the following content:

    • Slicing. APP Store distributes only what you need to install
    • On-demand resources. The app's additional resources are saved on the AppStore, and the resources are downloaded asynchronously when needed.
    • When Bitcode.app commits, it is compiled into 64-bit and 32-bit, and the corresponding version is distributed when the AppStore is distributed.

Support right-to-left languages

IOS9 supports right-to-left languages, making it easier to provide a flip-out interface.

    • The standard Uikit control automatically flips right-to-left content.
    • UIView defines some properties that allow you to formulate how to display right-to-left content.
    • UIImage added the Imageflippedforrighttoleftlayoutdirection method to make it easier to flip a picture in code.

App Transport Security

App Transport Security (ATS) adds app and background secure connections. ATS prevents accidental leaks, provides security-related default behavior, and is also well-implemented. Opens by default after IOS9 and OS X v10.11. You should implement ATS as soon as possible, whether it's creating new apps or updating apps.

If you are developing a new app, you should only use HTTPS. If you have an existing app, you should now use HTTPS as much as possible and plan to migrate other interfaces as soon as possible. In addition, using the upper API communication requires TLS 1.2 encryption. If this connection is not practical, an exception is thrown. If the app needs to request an insecure domain name, it needs to be declared in the app's info.plist.

Extension Points

IOS9 provides a number of new plug-in points (plug-in points define the usage policy and the API provided for that area when creating the plugin). As follows:

  • Network plugins:
    • Use the packet tunnel provider plug-in point to implement the VPN protocol channel for the client.
    • Use the app Proxy provider plug-in point to implement client-defined network protocols.
    • Use the filter Data provider and the filter Control provider plug-in point to implement dynamic, device-based content filtering.
    • Each network plug-in point requires Apple's special license,
  • Safari Plugin
    • Use the Share link plugin to let users view your content in a shared link in Safari.
    • Use the Masked Content plugin to block content when users browse the Web using Safari.
  • Maintaining the index plugin can re-index the app's data without opening the app
  • The audio plugin allows your app to provide music, sound effects, and sound generation. This plug-in point contains a complete audio plugin module and can sell music on the AppStore.

Contacts and Contacts UI

The iOS9 provides contacts.framework and contactsui.framework. They provide an object-based implementation. You can replace the address bookheaddress Book UI framework.

Watch communication

The Watch Communication Framework (Watchconnectivity.framework) provides two-way communication between the iphone and the paired watch. Use this framework to correspond to the iOS app's interface and the interface in your watch. This framework supports real-time messages when all two apps are running, and other scenarios support background messages.

Key strings

The keychain provides more protection and a new type of encryption.

Swift strengthens

Other Framework Updates

AV Foundation Framework

AV Foundation (avfoundation.framework) adds the Avspeechsynthesisvoice API to allow you to designate sounds as identities. You can use the name and quality properties to get sound information.

Avkit Framework

Avkit (avkit.framework) includes Avpictureinpicturecontroller and Avplayerviewcontroller classes that can help you achieve PIP.

Cloundkit Framework

If you have a Cloudkit app, you can use Cloudkit Web service or Cloudkit JS, a JavaScript library that provides a web interface for accessing data in the app. The premise is that your database defines the schema of the Web interface.

Foundation Framework

Foundation (Foundation.framework) contains the following enhancement:

    • API to load NSBundle resources on Demand
    • Support for strings files
    • Enhanced Nsprocessinfo

HealthKit Framework

HealthKit (Healthkit.framework) contains the following enhancements:

    • Support for new tracking areas.
    • You can delete records in bulk.

Local Authentication Framework

    • The current registered finger information can be obtained, so that when registering or deleting the finger information can be handled accordingly.
    • Support to remove user password Authentication tips
    • Support Keychain access control, authentication when calling Keychain
    • Supports reuse of TouchID matches.

Mapkit Framework

    • Mapkit support query bus station and bus navigation
    • Map supports 3D mode
    • Annotations can be fully customizable
    • Mapkit search results and Clgeocoder can provide the time zone for the results

Passkit Framework

    • In IOS9, Apple pays support for storage debit card and credit cards.
    • In the app you can add cards directly to Apple to pay.

Safari Service Framework

Sfsafariviewcontroller can display Web page content in the app. It shares data with sites in Safari and has many of the properties of safari, such as AutoFill. Unlike Safari, the Sfsafariviewcontroller interface custom function displays an interface with a Finish button to bring the user back to the app.

If the app just displays Web content, but doesn't need to be customized, consider replacing Wkwebview or UIWebView with Sfsafariviewcontroller.

Uikitframework

  • The Uistackview class, which helps you manage a set of sub-interfaces, automatically ranks vertically and horizontally.
  • New layout anchors (such as Leadinganchor and Widthanchor) in Uiview,nslayoutanchor and nslayoutdimension make layout easier.
  • The new layout guides help you to better layout the interface and define how the interface is drawn.
  • The new uiapplicationdelegate can be used to open or modify the document without having to copy the previous document. To support this feature, the app needs to set Lssupportsopeningdocumentsinplace to Yes in Info.plist.
  • The Uitextinputassistantitem class can help you place shortcut buttons.
  • Enhanced the Touch event.
  • Enhanced Uikit, such as support for non-rectangular borders, uifieldbehavior classes, support for multiple area types, or custom.
  • The new behavior property of Uiusernotificationaction enables you to enter text in the notification.
  • The new Nsdataasset class makes it easier to get data from memory or graphics devices.
  • All standard Uikit controls support right-to-left languages. In addition, navigation, gestures, and collection,table layouts all support flipping.

Deprecated APIs

The following API has been deprecated.

    • Address Book and Address Book UI framework. Using the contacts and Contacts UI framework overrides
    • The Nsurlconnection API in the foundation framework. Using NSURLSESSIONAPI Overrides

New features for IOS 9

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.