iOS底层功能
jiangzhesmile
这个作者很懒,什么都没留下…
展开
-
工作总结_20120716
1. self.view.autoresizingMask = UIViewAutoresizingNone; //不自动适应 self.view.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;//左边边距自动适应 self.view.autoresizingMask = UIViewAutoresizingFlexible原创 2012-07-16 18:46:47 · 1096 阅读 · 0 评论 -
工作总结_20120710-20120711-20120712
1. 如何在@property中声明delegate的方法? @protocol MyDelegateProtocol - (NSNumber*) someFunction:(NSArray*) anArray; @end @interface MyClass : NSObject @property (nonamatic,unsafe-unretained) id delegate原创 2012-07-12 19:05:50 · 700 阅读 · 0 评论 -
多线程之NSInvocationOperation
多线程之NSInvocationOperation T 多线程编程是防止主线程堵塞,增加运行效率等等的最佳方法。而原始的多线程方法存在很多的毛病,包括线程锁死等。在Cocoa中,Apple提供了NSOperation这个类,提供了一个优秀的多线程编程方法。 本次介绍NSOperation的子集,简易方法的NSInvocationOperation: @implementa转载 2013-07-25 14:59:16 · 545 阅读 · 0 评论