摘要: NSString的大小对比方法例子#import int main(int argc, const char * argv[]) { @autoreleasepool { NSString *str = @"789"; //创建一个字符串并且初始化它的值. NSSt... 阅读全文
posted @ 2014-10-10 21:22 背着吉他去流浪 阅读(459) 评论(0) 推荐(0)
摘要: NSString在OC上的比较方法和C语言中的有一些不相同, 来看看下面的例子吧~#import int main(int argc, const char * argv[]) { @autoreleasepool { NSString *str = @"Hello, World... 阅读全文
posted @ 2014-10-10 21:14 背着吉他去流浪 阅读(405) 评论(0) 推荐(0)
摘要: 归档: 名副其实的就是把所有东西归纳在一个文档或者文件里面, 当我们需要的时候才拿到编译器使用, 这个就和我们从网上下载视频到硬盘, 需要的时候再用播放器打开一样.PS: 归档之后的文件不能正常的打开, 只能用CMD或者是编译器的一些代码读取并且释放, 注意, 是先读取后释放, 不然释放在读取前面,... 阅读全文
posted @ 2014-10-10 19:44 背着吉他去流浪 阅读(218) 评论(0) 推荐(0)
摘要: 修复bug的12个关键步骤:1.明确目的。2.准备工作。3.匹配测试环境。4.明确代码的用途。5.重现和诊断错误。6.编写测试案例。7.进入修复模式。8.整理代码。9.找别人来审查一下。10.再次检查此修复过程。11.试着不从主线出发。12.思考。 阅读全文
posted @ 2014-10-10 18:44 背着吉他去流浪 阅读(506) 评论(0) 推荐(0)
摘要: http://blog.cocoabit.com/blog/2014/10/06/yi-li-jieobjective-cruntime/ 阅读全文
posted @ 2014-10-10 14:49 背着吉他去流浪 阅读(148) 评论(0) 推荐(0)
摘要: http://www.chinaz.com/swift/ 阅读全文
posted @ 2014-10-10 14:37 背着吉他去流浪 阅读(141) 评论(0) 推荐(0)
摘要: -(id)performSelector:(SEL)aSelector withObject:(id)anObject withObject:(id)anotherObjectDescription[说明]Sends a message to the receiver with two object... 阅读全文
posted @ 2014-10-10 13:41 背着吉他去流浪 阅读(380) 评论(0) 推荐(0)
摘要: -(id)performSelector:(SEL)aSelector withObject:(id)anObjectDescription[说明]Sends a message to the receiver with an object as the argument. (required)[将... 阅读全文
posted @ 2014-10-10 12:44 背着吉他去流浪 阅读(427) 评论(0) 推荐(0)
摘要: -(id)performSelector:(SEL)aSelectorDescription[说明]Sends a specified message to the receiver and returns the result of the message. (required)[发送指定消息的接... 阅读全文
posted @ 2014-10-10 11:51 背着吉他去流浪 阅读(579) 评论(0) 推荐(0)