How to Avoid iOS 5 development traps

Source: Internet
Author: User

First, pay attention to the latest information. Go to the official website of Apple, such as the upgrade of iOS 5. The official website has provided relevant documents and new features long before. There are also many video resources to demonstrate the impact of new features on development or design. There are also various forums related to iOS development, such as CocoaChina and CSDN communities.

The next step is to quickly reflect the actions of the platform and provide a version update for the first time. This is very important and can provide a good user experience. But remember that stability must be ensured. The style of Apple is essential for iOS apps. Quick response does not mean that you are on the fly. Application stability is a prerequisite for user experience. Therefore, do not rush to use new features. developers can easily get into the excitement of new features. But in fact, from the perspective of the entire product operation, we must be careful in line with the principle that stability prevails over everything!

The final part is the coverage test. Testing is the most effective way to discover many problems. Full-featured coverage testing requires you to maintain a complete set of testing solutions before going online. In this way, you can easily find problems by following this solution. In addition, cover all devices and all compatible systems. In theory, as long as the system version is the same between different devices, there should be no problem, but it is always different from the theory.

After each system upgrade, Apple lists all the things that he thinks are important. developers can check for missing items one by one. At the same time, you should pay attention to other websites and forums, which may be inspired and warned. What I mentioned earlier is actually a general summary of a general aspect.

New iOS features

The significance of iCloud Storage for developers: all files on iOS devices can be uploaded through the iCloud Storage provided by Apple. After the cloud Storage is launched, there will be some mandatory requirements for local Storage. What data can be uploaded? The first is user-generated data, or non-re-generated data that can be uploaded, And the rest should be put in the Cache. According to Apple's Guideline, such data is automatically backed up on the iCloud Storage, and developers are required to save space and traffic as much as possible.

Using ARC with caution is a double-edged sword: ARC automates the previous manual Release during compilation, which is the same as manual compilation. According to Apple's publicity, ARC has greatly improved the efficiency of Release and Return management. ARC greatly reduces the iOS development threshold, but also brings some negative effects. Unlike Java's garbage collection mechanism, it is released after it is collected to a certain extent. As a result, some garbage collection may not be timely, or the performance may be affected when it is released.

Integrity believes that most of the currently released applications have relatively well-managed memory, so it will not have a significant impact on the product. ARC has some difficulties in identifying things from C or C ++. He has some special statements about these applications. If many third-party class libraries are used in the application to convert them to ARC, it takes some courage. After the transfer, you may have no idea whether it will cause any problems. You also need to perform a detailed and comprehensive test. Therefore, new employees should be cautious when using the online applications during the maintenance period. New applications can be used as much as possible.

Newsstand Introduction: Newsstand only provides a gathering place for news applications. Its benefits include: it can provide personalized covers, each with a cover, and its size can be set by itself. Apple provides several standards, including magazine styles or news styles. In addition, movie applications often require a large amount of data to be downloaded. Newsstand provides a background download and push mechanism to prevent users from downloading magazine content after opening the application, possible personal injury incidents.

Some other new features: Storyboards is attractive to developers, and it is also used with caution for online applications. For Coreimage, Apple provides a large number of image processing APIs. The threshold is a little high, and it is difficult to learn a lot of image algorithms. Location Simulation is designed to solve the difficulty of developers in field testing when developing applications based on geographical locations. However, it is not very flexible and can only provide such simulation to a certain extent. Instumnets provides a large number of performance analysis tools. OpenGL ES provides a better environment for both testing and debugging.

IOS upgrade Problems and Solutions

In iOS 4, the Category method is very popular, but not in iOS 5. UINavigationBar actually provides a better way to modify the background. To ensure compatibility between iOS 4 and iOS 5, you must first retain the Category, which is no problem in iOS 4. If there is a problem on iOS 5, you can provide the background for system modification. The second change may be important.

Another is a headache. The keyboard height in iOS 5 is not fixed. For example, for Weibo applications, the input method directly covers the input box. Apple also provides several events. The first one registers some events and you can see them directly in Userinfo. This includes retrieving a Frame or something. The obtained content is a velue value. If it is not a value, it is encapsulated into ISVELUE. Basically, the changes on these keyboards can be processed.

In iOS 5, we recommend that you discard the UDID, which may be canceled later. Apple provides some alternative methods. For example, you can create your own UDID and save it to NEWUSERDEFAULT. Although this is not a unique UDID, it basically does not affect the use of statistical analysis.

It is clearly written in ReleaseNote to hide a header and it is useless to directly return it. UIPICKERVIEW is the first choice, it will call some programs to actively design a method of his choice. Currently, it is not triggered in iOS 5, so we need to do some targeted processing. In iOS 5, you need to design papovercontroller proactively.

Via CMDN Club

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.