iOS 5 基础
文章平均质量分 80
nerohoop
这个作者很懒,什么都没留下…
展开
-
Your First iOS App基础概念总结
Your First iOS App @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([HelloWorldAppDelegate class])); } 1. UIApplicationMain创建了一个UIApplication类的实例和一个app delegate的实例原创 2012-04-06 21:27:51 · 617 阅读 · 0 评论 -
Objective-C New Features
Strong and Weak 1. strong : keep this in the heap until I don’t point to it anymore. I won’t point to it anymore if I set my pointer to it to nil. Or if I myse原创 2012-04-07 21:09:25 · 793 阅读 · 0 评论 -
iOS中的一些设计模式
The Most Important Design Pattern: Model-View-Controller 理解model,view,controller之间的通讯方式 Delegation: Acting on Behalf of Another (Framework) Object 代理 被代理对象必须定义一个属性,用来保存对代理对象的引用(通常为weak)原创 2012-04-10 09:59:11 · 1041 阅读 · 0 评论 -
File System
File System Basic About the iOS File System 1. During installation of a new app, the installer code creates a home directory for the app, places the app in that directory, and creates several oth原创 2012-05-16 10:25:36 · 424 阅读 · 0 评论 -
NSTimer用法小结
Timers的替代方法 如果只是要延迟消息的发送,可以使用NSObject的方法 - (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay - (void)performSelectorOnMainThread:(SEL)aSelector withO原创 2012-01-24 15:55:53 · 10027 阅读 · 1 评论 -
Date Formatters 用法总结
Date Formatters Use Formatter Styles to Present Dates and Times With the User’s Preferences NSDateFormatterNoStyle 不显示 NSDateFormatterShortStyle 1/25/12 7:11 PM NSDateFormatterMediumStyle Ja原创 2012-01-25 20:28:05 · 1090 阅读 · 0 评论