
iPhone Development
文章平均质量分 72
普通网友
这个作者很懒,什么都没留下…
展开
-
NSTimer
<br />NSTimer 可以精确控制50 - 100ms 的时间,如何Timer 处理函数比较耗时,真实的间隔时间可以比预设时间长,core function framework 也提供相似的对象, CFRunLoopTimerRef, 而且CFRunLoopTimerRef 可以 和NSTimer 相互替换<br /> <br />NSTimer class<br />Creating Timer<br />1. scheduledTimerWithTimeInterval:invocation:re原创 2011-01-28 09:18:00 · 2594 阅读 · 0 评论 -
Delete app on iTune connect
Click "Rights and Pricing"Go to the sale territories section. There is a link near the endClick on the "Deselect all" button to uncheck all App Store territories.Click on the "Save Changes" butt原创 2012-03-18 13:51:57 · 412 阅读 · 0 评论 -
Objective-c Property define
属性的定义(property)@property (copy, nonatomic) NSString *title;什么是assign,copy,retain之间的区别?assign: 简单赋值,不更改索引计数(Reference Counting)。copy: 建立一个索引计数为1的对象,然后释放旧对象retain:释放旧的对象,将旧对象原创 2012-03-24 11:00:52 · 451 阅读 · 0 评论 -
iPhone Network 编程
1. IPhone目前提供可以检查配置状态,比如 网络连接状态 Wi-Fi可使用状态 cell service可使用状态但是没有API可用于检测 "蓝牙连接" 状态 或者检测用户是否在漫游(roaming)状态2. 检测IP是否可以reachable SCNetworkReachabilityCreateWithAddress-(BOO原创 2011-11-25 14:02:19 · 1109 阅读 · 0 评论 -
iOS内存 管理 一点
UIViewController中引入了一个新方法,viewDidUnload: 当拥有多个视图是,iPhone OS将加载和卸载nib文件,以保留内存。当视图被卸载时,在控制器内中具有相应输出口的任何对象都无法从内存中擦除,因为你已经通过在输出口的属性中指定retain关键字来保留了该对象。因此,当控制器获知其视图已被卸载时,一定要将控制器的所有输入出口属性设置为nil,以便释放内存。当重新原创 2011-11-01 21:16:31 · 372 阅读 · 0 评论 -
integrate PhysicsEdit into cocos2d
1. PhysicsEdit will export with *.plist2. Add plist and image into Box2D with following code:CCSprite *sprite = [CCSprite spriteWithFile原创 2011-08-09 16:09:36 · 491 阅读 · 0 评论 -
Send message to twitter
<br />http://www.slideshare.net/ryan/iphone-app-howtosend-message-to-twitter原创 2011-02-11 12:57:00 · 363 阅读 · 0 评论 -
集合 - 1
Cocoa 中的集合有NSArray(NSMutableArray), NSSet (NSMutableSet, NSCountedSet), NSDictionary (NSMutableDictionary)NSArray-(unsigned) count-(id) objectAtIndex:(unsigned) index-(BOOL) containsObject:(id) anObjectNSMutableArray-(void) addObject:(id) anObject-(void) i原创 2011-02-06 19:30:00 · 295 阅读 · 0 评论 -
gdb 调试-1
<br /> <br />(gdb) call [exp] 调用给定的对象功能<br />(gdb) print [exp] 输出给定表达式的原始值<br />(gdb) print-object [exp] 输出表达式返回的对象值<br />(gdb) set [variable] = [exp] 将表达式的值赋给变量<br />(gdb) whatis [variable] 输出变量的类型<br />(gdb) help 输出调试器的命令列表原创 2011-02-06 19:13:00 · 293 阅读 · 0 评论 -
two type of parsing date on iPhone
Parse date information by NSCalendar, NSTimeZone, and NSDateComponents:NSDate *now = [NSDate date]; // 1NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGr原创 2012-07-03 19:50:22 · 379 阅读 · 0 评论