categoriy 重写函数会怎样?
摘要:Fromcomp.lang.objective-C FAQ listing: "What if multiple categories implement the same method?Then the fabric of the Universe as we know it ceases to ...
阅读全文
复习一下property
摘要:在面向对象程序里,一个对象不要直接访问另一个对象内部的数据。所以我们使用accessor methods来进行对象内部的数据交互。accessor methods(getters and setters) are used as an abstraction for interacting with...
阅读全文
使用block的好处
摘要:1 使用block 可以轻松地绑定各处代码块,使用delete 结构是分散的,不利于变量之间传值,不像block可以随意地获取变量值。2.使用block可以方便执行异步代码,作为异步处理回调。In terms of code readability, the block makes it easy ...
阅读全文
条件断点 符号断点
摘要:the breakpoint will always be skipped. Your breakpoint condition can be any code that evaluatestrueorfalse. For example, if you only want the breakpoi...
阅读全文
设计方法
摘要:storyboard迭代比较快You’ll get more valuable feedback if you can put together a fleshed-out prototype that runs on a device. When people can interact with ...
阅读全文
iOS设计规范HIG
摘要:点击图标大小至少为这么大:Make it easy for people to interact with content and controls by giving each interactive element ample spacing.Give tappable controls a h...
阅读全文
一些常用的库
摘要:1.AFNetworking地址:https://github.com/AFNetworking/AFNetworking用于网络请求2.JSONKit地址:https://github.com/johnezang/JSONKit解析JSON3.Reachability地址:https://gith...
阅读全文
isKindOfClass isMemeberOfClass 的区分
摘要:isKindOfClass:returns YES if the receiver is an instance of the specified class or an instance of any class that inherits from the specified class.isM...
阅读全文
自学知识的博客
摘要:一位朋友的博客,可以当做自学教材http://blog.csdn.net/stpeace/article/list/5
阅读全文
更新进度
摘要:notification 也有顺序,如何保证数据先更新,界面接着更新?或者是用那种KVO模式还有我之前说的RAC模式,但是有人说用起来比较方便,但是调试起来就比较困难,多线程。我使用KVO的感想,存在几个问题:1.keyPath,我如何把proerty 装换成NSString, 我不想写死,因为不灵...
阅读全文
好用的工具库
摘要:DDLog 打印日志,可以改变打印等级,也可以彩色显示。封装约束,就不用写一堆代码来写约束了。可以很方便就定义一个view的位置。https://github.com/SnapKit/Masonry点击事件或者其他事件的blockzwaldowski/BlocksKithttps://github....
阅读全文
免费的自动构建CI
摘要:https://travis-ci.org/
阅读全文
如何减少block的嵌套层次?
摘要:1.首先了解一个概念函数式反应型编程(FRP) —— 实时互动应用开发的新思路http://www.infoq.com/cn/articles/functional-reactive-programming 我的理解,无非是把以前异步处理用同步处理代码方式表现出来。 需求: 1.因为一般初学者搞...
阅读全文
一些ios牛人的博客
摘要:王巍的博客:王巍目前在日本横滨任职于LINE。工作内容主要进行Unity3D开发,8小时之外经常进行iOS/Mac开发。他的陈列柜中已有多款应用,其中番茄工作法工具非常棒。http://onevcat.com池建强的博客:池建强,70后程序员,Blogger。98年毕业,先后就职于洪恩软件、Rock...
阅读全文
pop to 特定的UIViewController
摘要:1. 我们可以推出到特定的UIViewController2. 有一个类没有navigationController,以前一般用delegate,我觉得我们可以把引用一个navigationController,然后使用它来推出另一个UIViewController
阅读全文
notification 是同步的
摘要:所有notification的观察者执行之后,post notification的函数才会往下执行。
阅读全文
什么时候block 是放在全局区里面的?
摘要: When a Block literal is written where there are global variables When the syntax in a Block literal doesn’t use any automatic variables to be cap...
阅读全文
ios 工作日志
摘要:1.设计模式1.1 想用一个controllerK控制多个页面的切换 但是每一个页面必须要引用这个controller,这样才能控制进度, 所以必须是弱引用。controller必须被某一个实例强引用,否则它会释放。1.2 页面不在当前的时候,我们要控制窗口不要弹出,所以必须自己保存好页面是否已...
阅读全文
工作日志
摘要:1.调试少写一个break到case分支,导致代码fall through出现bug --------- 这样,编译器应该告警才对。添加case要注意。 2.tabbleviewcell reload导致cell样试没有保留。所以需要用额外的变量来保存。 ------- tableviewcell是
阅读全文
学习ios
摘要:Tabbar navigation uinavigation parentViewController1. main 函数的类2. tcp udp3. instancetype 与 id的差别4. autopoolrealease5. ios 8 new feature6. GCD如何确实两个队列中...
阅读全文
ios理解 -- Pro Mutlithreading and Memory Management for iOS and OS X with ARC, Grand Central Dispatch, and Blocks
摘要:Capturing automatic variablesNext, you need to learn what the “together with automatic (local) variables” part means. For Blocks, this can be rephrase...
阅读全文