• OC的变量限定词的官方解释:
  • __strong is the default. An object remains “alive” as long as there is a strong pointer to it.(当属性没有使用修饰词时,默认的是strong,只要有强指针指向它,这个对象会一直存在)

  • __weak specifies a reference that does not keep the referenced object alive. A weak reference is set to nil when there are no strong references to the object. (_weak修饰的对象并不会持有改对象,当一个对象没有强引用的指针指向它时,weak修饰的对象会被制空)

  • __unsafe_unretained specifies a reference that does not keep the referenced object alive and is not set to nil when there are no strong references to the object. If the object it references is deallocated, the pointer is left dangling.(__unsafe_unretained 和weak类似,但是当对象没有被强引用时,__unsafe_unretained修饰的对象还会指向该对象的地址)。

最新文章

  1. 缩小窗口时CSS背景图出现右侧空白BUG的解决方法
  2. 理解margin
  3. ReportService未指定 OverwriteDataSources
  4. mpu
  5. 轻松获取LAMP或LNMP环境编译参数
  6. Raphaël 是一个小型的 JavaScript 库,用来简化在页面上显示向量图的工作。你可以用它在页面上绘制各种图表、并进行图片的剪切、旋转等操作。
  7. 给大家普及一下CPU和SOC的基本知识,好让大家在盲目喝彩做出基本的判断
  8. Yaha,Yaho
  9. 有关XCode6(iOS8)UITableViewCell与iOS7在UITableViewCell问题
  10. win2008阿里一键环境包mysql老是1067报错
  11. java模拟登陆功能
  12. 14、使用csv和excel存储豆瓣top250电影信息
  13. WEB安全之垃圾信息防御措施
  14. TP5实现邮件发送(PHP 利用QQ邮箱发送邮件「PHPMailer」)
  15. CSS: Position Introduction.
  16. oozie无法识别hadoopHA中的ns1
  17. Flappy Bird背后的故事
  18. Redis的Pub/Sub机制存在的问题以及解决方案
  19. Centos7 FPM 安装mysql8
  20. if、for、while、do 等语句自占一行

热门文章

  1. python3 操作配置文件
  2. <input > -- radio
  3. NodeJS静态文件访问性能测试
  4. erlang link 与 monitor
  5. ossfs 使用挂在到ecs -centos 6.8
  6. c++中的两种getline用法
  7. Sqlite 参数化 模糊查询 解决方案
  8. Python学习之路基础篇--03Python基础+万恶的运算符
  9. md5Util
  10. maven web工程 解决了pom.xml报错之后,maven web工程还是有个红色的叉叉 解决