IOS7 SDK New features

Source: Internet
Author: User
Tags map class uikit

The spring breeze and green California shore. It's been a year. WWDC Keynote, the new iOS development journey also opens. What developers need to know is behind the big changes in the IOS7 interface. As I did last year, I'll start with a brief overview of what I personally think developers need to focus on and learn in IOS7, and then explore the chapters of their own interest. Plan to inherit the form of notes similar to WWDC2012, hoping to help domestic developers.

Related notes are organized such as the following:

UI-related new UI design

The biggest change in IOS7 is UI design. Perhaps you would say UI design "This is something that designers should focus on, not about the developers." We just need to replace the picture. " Then you are wrong. Changes in the UI will inevitably bring about changes in usage habits and patterns, how to use the IOS7 UI, and how to make your application more relevant to the new system, which is something to consider.

It is also worth noting that using the IOS7 SDK (now available only with the XCODE5 preview), the packaged app will actively use IOS7 's new interface when executed on iOS7, so the original application may need to make significant adjustments to the new interface.

The Human interface documentation for the UI elements used in the detailed iOS7 can be found here (it should be a developer Account talent view).

A simple summary. With today's hands-on experience, new UI change improvements have such as the following:

    • status bar, navigation bar and app actual content no longer bounds: The system comes with applications that no longer differentiate between the status bar and the navigation bar, but with a uniform color for simplicity.

      This is also a trend.

    • Baritem's button All text: This is pretty firm. All navigation and toolbar buttons are cancelled to be materialized, the original text (such as "Edit", "done", etc.) changed to simple text. The original icon (for example, new or deleted) has also been simplified.
    • Program Open adds Animation: A zoom in from the main interface to the location of the icon. Display the app's loading interface at the same time.

I have experimented with several existing appstore applications on the implementation of IOS7:

    • Pomodoro do: This is my own development of the application, the implementation of normal, but because not iOS7 SDK packaging, so in the UI using the previous system, the problem is the navigation bar tint color loss, resulting in a very ugly, need to update as soon as possible.

    • Facebook: There's nothing wrong with using a picture to define the navigation bar instead of using the system-provided material directly.
    • Bread travel: Direct crash, unable to open, reason unknown.

This UI change can be said to be a test of agile development, the original application (especially for the use of more heavy applications), although can also be implemented. But a lot of the UI itself defines the place that needs to be changed not to say, but also easy to let users create a "come to a world" feeling, at the same time can see also some applications can not be executed. For Apple's closed system and its only rise, developers and their applications will need to adapt to the new systems as quickly as possible, which is an opportunity for iterative high-speed applications that continue to be maintained.

Trust who can adapt to the new UI first. Who will be on the iOS7 to take advantage of the opportunity.

Dynamic Uikit

Added UIDynamicItem Trust to develop dynamic behavior for UIView. Of course, all other objects can define dynamic behavior by implementing this set of interfaces. It is only possible to apply the most in Uikit.

Dynamic behavior refers to the introduction of real-world behavior or characteristics into the UI, such as gravity. By implementing Uidynamicitem,uikit today support such as the following behavior:

    • The Uiattachmentbehavior connects two objects that implement the Uidynamicitem (hereinafter referred to as dynamic objects), and when an object moves, there is a trailing movement
    • Uicollisionbehavior specify a boundary to enable two dynamic objects to collide
    • Uigravitybehavior, as the name implies, adds gravity simulations to dynamic objects
    • Uipushbehavior to exert continuous force on dynamic objects
    • UISNAPBEHAVIOR specifies an attachment point for a dynamic object. Imagine the feeling of hanging a picture on a Pushpin.

Suppose there are children's shoes that develop games that may be thought to be very much a requirement for playing games. A 2D physics engine, such as box2d, is a visual sensation.

Yes, the pro, dynamic UI, plus the sprite Kit to be introduced later, greatly expands the possibilities for game development using Uikit. Also note that Uidynamicitem is not only suitable for uikit, no matter what object can implement interface to obtain some characteristics of dynamic object, so it is not impossible to use to do some 3D things. Suppose that the combination of cocos2d+box2d is inconvenient to use. Now dynamic Uikit+spritekit gives a new choice.

Game aspects

The IOS7 SDK greatly strengthens the experience of making and distributing games directly using the iOS SDK, most fundamentally by introducing a dedicated game-making framework.

Sprite Kit Framework

This is a person feel iOS7 SDK biggest highlight, also the most important part, the IOS SDK finally has its own elf system. The Sprite Kit Framework uses a hardware-accelerated animation system to represent both 2.5D and a game. It provides most of the tools you need to make a game. Contains image rendering, animation system. The physical engine for sound playback and image simulation. To be able to say this framework is the iOS SDK comes with a more complete 2D game engine. Try to get developers to focus on higher-level implementations and content.

Like most game engines, the contents of the Sprite kit are organized separately according to the scene, and a scene can contain map objects, videos, and shapes. Particle effects are even coreimage filters and so on. Compared to the existing 2D engine, the sprite kit is optimized at the system level. The rendering time is determined by the framework, so there should be higher efficiency.

Other than that. Xcode also provides tools for creating particle systems and Mapping atlas.

Use Xcode to manage particle effects and map Atlas, which quickly reacts to the sprite kit.

Game Controller Framework

The corresponding framework for the hardware designed for the Made-for-iphone/ipod/ipad (MFI) game controller enables users to connect and control specialized gaming hardware. Get started with a racing demo in the WWDC 2013 introductory video. Now the thought is, perhaps this goods not only can use in the game ... Or Apple will expand its application later. The use of a very high-prevalence iphone as the gateway to the Internet of things seems to be a very promising thing.

Gamecenter improvements

Gamecenter has been an apple's downfall ... Despite the improvement every year. But I never saw a big improvement.

This year is no exception. are minor changes. Don't mention it.

Multi-Task Hardening
  • uibackgroundmodes for fetch To achieve the background download content, need to implement Setminimumbackgroundfetchinterval: and application: Performfetchwithcompletionhandler: to process the completed download. This provides another option for executing code in the background. Just considering that Apple's assumptions continue to be strictly audited, it is possible that only a magazine or newspaper application can get this permission.

    It is also important to note that developers can only specify a minimum interval, and at the end of the day it is not expected to see the system Niang mood.

  • The same is the background download. Once you've only been able to push reminders into app downloads, you can now get pushed and downloaded in the background.

    The uibackgroundmodes is set to Remote-notification and implementsapplication:didReceiveRemoteNotification:fetchCompletionHandler:

For the background download, the developer must use a new class NSURLSession , in fact, the nsurlconnection on a background processing, the use of similar, the API is very simple, no longer repeat.

AirDrop

This is a new feature of iOS7 that users can use to share photos, documents, links, or other data to nearby devices. However, there is no special implementation, it is integrated in the standard Uiactivityviewcontroller, and there is no separate API to provide.

Data. Can be sent by implementing the Uiactivityitemsource interface. Maybe Apple doesn't want to see a file-sharing feature beyond their control. After all, this is not the same as the iOS design.

Let's say you don't use Uiactivityviewcontroller. It may not be possible to actually install the AirDrop function in the application.

Map

Apple continues to explore the map app. Mapkit's improvements are also lackluster. I have always believed that the bottleneck of the map class application must be the data, but the establishment of the data source is not completed in two years. Google in this piece with its own search engine has a unique advantage. The apples are still very far away.

Let's see what new things are:

    • Mkmapcamera. The ability to add a Mkmapcamera object to the map, showing the position, angle, and direction after the 3D looks ... Probably can imagine a digital version of Google Street View.
    • Mkdirections gets the direction-based path that Apple provides. It can then be used to draw the path in its own application. This can be a shock to some small map service providers, but the same sentence, the map is a world of data, before it has complete data. Apple is not an opponent of Google.

      The situation will last for at least a few years (and possibly forever).

    • Mkgeodesicpolyline creates a line with the curvature of the Earth. and attached to the map. Finished with some visual effects.
    • Mkmapsnapshotter uses it to take photos based on the map, perhaps all types of check-in applications will use
    • Changed the way overlay objects are rendered
Inter-app Audio between applications

The AudioUnit framework adds the ability to send MIDI commands and transmit audio between different applications of the same device. For example, use AudioUnit recording in one application, and then open it for processing in an application.

Declare an Auremoteio instance in the audio source application to be labeled Inter-app available, and use the new discovery interface in the target app to discover and get audio. The idea was very good, and it was a step in the application sharing, but I was not optimistic about the number of applications that are now using the low-level framework of AudioUnit. There may be some future shared APIs designed for higher levels to be available to developers. After all, it's not easy for most developers to start processing audio from AudioUnit.

Point-to-point connection Peer-to-peer Connectivity

can be regarded as compensation that airdrop cannot use directly. The price is the need to achieve it. The multipeerconnectivity framework can be used to discover and connect nearby devices and transfer data. And there's no need for Internet connectivity.

You can see that Apple is gradually releasing restrictions on file sharing, but of course all of them are still confined to the sandbox.

Store Kit Framework

The Store Kit uses a new order system for purchasing, which will enable native verification of orders. This is a corresponding internal purchase hack and the possibility of verification failure caused by the failure of internal purchase of updates, Apple hopes to reduce the internal purchase of the implementation process, reduce errors, the same time to curb the spread of internal purchase crack. The former may not be a problem, but the latter. Due to the dynamic nature of the OBJC. decided to have only jailbreak existence, inside the purchase crack is also the sooner or later thing. Just this is really handy for small developers who don't have the ability to set up a validation server. This is still very good.

At last

Of course other minor changes, including Messageui added attachment Button,xcode Start support module and so on. A complete list of iOS7 new features can be found here (temporary should also require a developer account).

The last good news is that Apple slows down the abandonment of the API, which does not have a particularly important API labeled Deprecated,cheers.

-See more at:http://onevcat.com/2013/06/developer-should-know-about-ios7/#sthash. Rwmkwace.dpuf

IOS7 SDK New features

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.