![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
浮生蝶羽
这个作者很懒,什么都没留下…
展开
-
定时器(NSTimer)
**创建一个定时器:** NSTimer *timer = [NSTimer timerWithTimeInterval:2.0 target:self selector:@selector(nextImage) userInfo:nil repeats:YES];//将这个定时器以默认方式(NSDefaultRunLoopMode)添加到当前线程消息循环 NSRunLoop *run原创 2016-02-05 11:15:35 · 226 阅读 · 0 评论 -
应用沙盒
应用沙盒结构分析 应用程序包:(上图中的Layer)包含了所有的资源文件和可执行文件 Documents:保存应用运行时生成的需要持久化的数据,iTunes同步设备时会备份该目录。例如,游戏应用可将游戏存档保存在该目录 tmp:保存应用运行时所需的临时数据,使用完毕后再将相应的文件从该目录删除。应用没有运行时,系统也可能会清除该目录下的文件。iTunes同原创 2016-02-05 11:23:43 · 336 阅读 · 0 评论 -
键盘的弹出与消失(通知)
**键盘的通知 :** //UIKeyboardWillShowNotification(键盘即将显示) //UIKeyboardDidShowNotification(键盘已经显示) //UIKeyboardWillHideNotification(键盘即将隐藏) //UIKeyboardDidHideNotification(键盘已经隐藏) //UIKeyboardWillChang原创 2016-02-05 11:51:21 · 669 阅读 · 0 评论 -
Quartz2D绘图
Quartz2D 常⽤用拼接路径函数 ● 新建⼀一个起点 void CGContextMoveToPoint(CGContextRef c, CGFloat x, CGFloat y) ● 添加新的线段到某个点 void CGContextAddLineToPoint(CGContextRef c, CGFloat x, CGFloat y)原创 2016-02-05 11:38:35 · 562 阅读 · 0 评论