摘要: 什么是GCD Grand Central Dispatch (GCD)是Apple开发的一个多核编程的解决方法。该方法在Mac OS X 10.6雪豹中首次推出,并随后被引入到了iOS4.0中。GCD是一个替代诸如NSThread, NSOperationQueue, NSInvocationOperation等技术的很高效和强大的技术,它看起来象就其它语言的闭包(Closure)一样(在Swi... 阅读全文
posted @ 2015-05-11 15:50 有奈了 阅读(4850) 评论(0) 推荐(0) 编辑
摘要: 注:此文为摘抄性质 来源:http://blog.csdn.net/dehengxu/article/details/11537989 在xcode 4 中,选择 targets 中的一个target,选择Build Phase标签页,找到Compile Sources栏目,看到其中有name, 和 compile flags 列,双击你将要进行arc设置的文件,在弹出的pop窗口中输入 ... 阅读全文
posted @ 2015-05-11 10:56 有奈了 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 定义: 用法: 阅读全文
posted @ 2015-05-11 10:30 有奈了 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 注册 1: NSNotificationCenter.defaultCenter().addObserver(self, selector: "textDidChange", name: UITextFieldTextDidChangeNotification, object: nil) 不要忘了移除: 1: deinit{ 2: ... 阅读全文
posted @ 2015-05-11 10:13 有奈了 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 一、 设置title 在需要显示该返回键的前一个Controller中设置: 1: navigationItem.backBarButtonItem = UIBarButtonItem(title: "注销", style: UIBarButtonItemStyle.Plain, target: nil, action: nil) 二、添加返回时执行Action: 你... 阅读全文
posted @ 2015-05-11 09:37 有奈了 阅读(3164) 评论(0) 推荐(0) 编辑