http://www.zhihu.com/question/19621777
f you're starting from zero, definitely go for some books first. I'd recommend anything that says "Big Nerd Ranch" on it. Aaron Hillegass knows more about teaching people Cocoa than probably anyone else on the planet.
Once you have a foothold on the basics, Apple docs are an amazing reference. In particular, check out the "Guides" section. Here are some of the more important ones (in no particular order):
- The Objective-C Programming Language
- Concepts in Objective-C Programming
- Xcode 4 User Guide
- Your First Mac App
- Mac OS X Human Interface Guidelines
- Advanced Memory Management Programming Guide
Check out the whole guides section, though, there's lots of good stuff there.
这个链接很好,不懂的问题上去看看十有八九能解决:
http://onevcat.com/2013/04/ios-interview/
openstack
敏捷开发
APP 发布
http://stackoverflow.com/tags/iphone/info
Observe Low-Memory Warnings
When the system dispatches a low-memory warning to your app, respond immediately. iOS notifies all running apps whenever the amount of free memory dips below a safe threshold. (It does not notify suspended apps.) If your app receives this warning, it must free up as much memory as possible. The best way to do this is to remove strong references to caches, image objects, and other data objects that can be recreated later.
UIKit provides several ways to receive low-memory warnings, including the following:
-
Implement the
applicationDidReceiveMemoryWarning:
method of your app delegate. -
Override the
didReceiveMemoryWarning
method in your customUIViewController
subclass. -
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/PerformanceTuning/PerformanceTuning.html#//apple_ref/doc/uid/TP40007072-CH8-SW1Register to receive the
UIApplicationDidReceiveMemoryWarningNotification
notification.
pngcrush
tool.)Integrating iCloud Support Into Your App
No matter how you store your app’s data, iCloud is a convenient way to make that data available to all of the user’s devices. Supporting iCloud in your app just means changing where you store your files. Instead of storing them in your app’s sandbox directory, you store them in a designated portion of the user’s iCloud storage. In both cases, your app just works with files and directories. However, with iCloud, you have to do a little extra work because the data is now shared and accessible to multiple processes. Fortunately, when you use iOS frameworks to manage your data, much of the hard work needed to support iCloud is done for you.
-
Document based apps get iCloud support through the
UIDocument
class. This class handles almost all of the complex interactions required to manage iCloud-based files. -
Core Data apps also get iCloud support through the Core Data framework. This framework automatically updates the data stores on all of the user’s devices to account for new and changed data objects, leaving each device with a complete and up-to-date set of data.
-
If you implement a custom data model and manage files yourself, you can use file presenters and file coordinators to ensure that the changes you make are done safely and in concert with the changes made on the user’s other devices.
-
For apps that want to share preferences or small quantities of infrequently changing data, you can use the
NSUbiquitousKeyValueStore
object to do so. This object supports the sharing of simple data types such as strings, numbers, and dates in limited quantities.
For more information about incorporating iCloud support into your apps, see iCloud Design Guide.