摘要: 1.协议的补充#import //#import "baseProtocol.h"@protocol baseProtocol;//只是告诉编译器有这个协议@interface Dog : NSObject@end2.NSString的比较#import void test(){ NSStri... 阅读全文
posted @ 2015-10-28 17:46 ios开发那点事 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1.block的基本使用#import int main(int argc, const char * argv[]) { @autoreleasepool { //1.无参数 无返回值 ... 阅读全文
posted @ 2015-10-28 16:14 ios开发那点事 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1.autorelease注意及错误用法#import #import "Person.h"/** * autorelease的使用注意 */void test(){ //1 自动释放池 Person *p = [Person new]; @autoreleasepool { ... 阅读全文
posted @ 2015-10-28 14:21 ios开发那点事 阅读(153) 评论(0) 推荐(0) 编辑