上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 34 下一页
摘要: 文件数据库读写读取可以并行,写入必须串行,如果在读写之后插入写入操作,可以通过dispatch_barrier_async操作加入到并行队列中,此时队列会按并行的方式执行完之前加入的操作,然后以串行的方式执行写入的代码,之后恢复正常处理逻辑 dispatch_apply函数,指定函数执行次数N,插入 阅读全文
posted @ 2019-08-05 09:33 雨筱逸悠 阅读(349) 评论(0) 推荐(0) 编辑
摘要: gcc 文件.m -o main -ObjC -framework Foundation 链接Foundation通过gcc编译生成main可执行文件 ./main 执行生成的main文件()在这个文件夹下面可以看到这个文件打开即执行 阅读全文
posted @ 2019-08-01 18:52 雨筱逸悠 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 内容来源 https://blog.csdn.net/weixin_43883776/article/details/86238958 一个解决方案 https://blog.csdn.net/qq_31490071/article/details/88870973 打了测试环境的包,在iOS11系 阅读全文
posted @ 2019-08-01 15:10 雨筱逸悠 阅读(1761) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/dcaaed1d47f2 什么是否Block会从栈复制到堆?答:当Block被当成对象进行拷贝传递赋值时(原来的内存空间会被销毁,对象方法生成Block,给到另一个对象之后该制造者就销毁了?直接赋值复制从会被销毁的对象中获取等方式均没有写出会复制到 阅读全文
posted @ 2019-08-01 14:44 雨筱逸悠 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 带了__block 没有带__block 阅读全文
posted @ 2019-08-01 14:24 雨筱逸悠 阅读(233) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/snsn1984/article/details/17716261 关于clang的理解 通过clang编译oc文件的配置 clang -x objective-c -rewrite-objc -isysroot /Applications/Xcode.a 阅读全文
posted @ 2019-08-01 13:49 雨筱逸悠 阅读(162) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/zhangxiaodui/article/details/78273505 加入两个meta标签(加入下面这个就已经生效了) <meta content="yes" name="apple-mobile-web-app-capable"><meta nam 阅读全文
posted @ 2019-07-30 15:54 雨筱逸悠 阅读(317) 评论(0) 推荐(0) 编辑
摘要: //输出10 int x = 10; void(^function)(void) = ^(void) { printf(" > %d",x); }; x = 12; function(); //输出12 int __block x = 10; void(^function)(void) = ^(vo 阅读全文
posted @ 2019-07-19 17:57 雨筱逸悠 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 通过私有方法调用查看当前autoreleasepool状态 阅读全文
posted @ 2019-07-11 16:35 雨筱逸悠 阅读(145) 评论(0) 推荐(0) 编辑
摘要: http://www.52im.net/thread-1404-1-1.html http://www.china10s.com/blog/?p=144 http://www.voidcn.com/article/p-kapoqdkq-dg.html 四、远程消息推送,激活 优点: 实现简单 唤醒时 阅读全文
posted @ 2019-07-05 10:41 雨筱逸悠 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 34 下一页