随笔分类 - Obj-c
摘要:之前设置了`LaunchScreen.storyboard`,在这个storyboard中加了一个imageView,里面设置了一张图片launch.png,今天需要更换这个启动图片,我就直接去工程里面,把launch.png,launch@2x.png,launch@3x.png这三张图片直接用其
阅读全文
摘要:1. Stopping a Timer 关闭定时器if you create a non-repeating timer, there is no need to take any further action. It automatically stops itself after it fire...
阅读全文
摘要:dispatch_queue_t serialQueue = dispatch_queue_create("com.lai.www", DISPATCH_QUEUE_SERIAL); dispatch_async(serialQueue, ^{ // NSLog(@"1")...
阅读全文
摘要:今天在Q群里有人问了个这么个问题: A,B,C,D 都是Viewcontroller。A、B、C、D使用present去切的他是这么搞的: A -> B, B ->C, C->D,然后他想在D直接到A控制器中。问有没有什么办法?1、 首先先不管这个问题,我们来一起说说push 和present的一些...
阅读全文
摘要:观 :http://yulingtianxia.com/blog/2014/11/05/objective-c-runtime/ 的总结:1.调用方法的本质:[receiver message]:---- objec_msgSend(receiver,selector)如果有参数 ------obj...
阅读全文
摘要:1.Masonry 创建constraint来定义布局的方式: 1.1、 mas_makeConstraints : 你可以使用局部变量后者属性来保存以便下次应用它 1.2、 mas_updateConstraints: adding/updating 有时候你需哟啊更新constraint,而...
阅读全文
摘要:1. Class 和 Object 的定义/// An opaque type that represents an Objective-C class.typedef struct objc_class *Class; /// Represents an instance of a class.s...
阅读全文

浙公网安备 33010602011771号