Objective-C Compiler Directives

@dynamic

"You use the @dynamic keyword to tell the compiler that you will fulfill the API contract implied by a property

either by providing method implementations directly or at runtime using other mechanisms such as dynamic

loading of code or dynamic method resolution. " R[0]p61

 

"@dynamic just tells the compiler that the getter and setter methods are implemented not by the class itself

but somewhere else (like the superclass or will be provided at runtime)."  Ref[4]

"Tells the compiler the setter and getter methods for the given (comma separated) properties are implemented manually,

or dynamically at runtime. Accessing a dynamic property will not generate a compiler warning, even if the getter/setter

is not implemented. You will want to use @dynamic in cases where property getter and setter methods perform custom code.

@end – Marks end of class implementation." Ref[8]

@synthesize

"Generate setter and getter methods for a comma separated property list according to property modifiers.

If instance variable is not named exactly like @property, you can specify instance variable name after the equals sign." Ref[8]

__attribute__

iOS.ObjC.__attribute__-directives


Reference

0. Objective-C 2.0 Programming Language

1. http://www.learn-cocos2d.com/2011/10/complete-list-objectivec-20-compiler-directives/

2. http://stackoverflow.com/questions/4621952/what-does-dynamic-do-in-objective-c

3. http://www.meonbinary.com/2013/05/objective-c-associated-objects

4. Objective-C: @synthesize vs @dynamic

http://ios-blog.co.uk/tutorials/objective-c/synthesize-vs-dynamic/

5. @dynamic vs @synthesize (To Read)

http://andiputra7.tumblr.com/post/16822250097/dynamic-vs-synthesize

6. When should I use @synthesize explicitly?

https://stackoverflow.com/questions/19784454/when-should-i-use-synthesize-explicitly

7. @synthesize keyword explanation

https://forums.developer.apple.com/thread/69075

8. Objective-C @Compiler Directives

https://kapeli.com/cheat_sheets/Objective-C_@Compiler_Directives.docset/Contents/Resources/Documents/index

9. @

http://nshipster.com/at-compiler-directives/

iOS.ObjC.Compiler.Directives的更多相关文章

  1. iOS.ObjC.__attribute__-directives

    __attribute__ Directives Reference 1. __attribute__ directives in Objective-C (AAAA+) (Read Again) h ...

  2. iOS.ObjC.Basic-Knowledge

    1. ObjC的基础 2. ObjC2.0中的编译指令 3. ObjC Runtime 4. ObjC Object Model 5. ObjC的新语法 6. FQA 1. ObjC的基础 2. Ob ...

  3. iOS Objc Runtime 教程+实例Demo

    样例Demo 欢迎给我star!我会继续分享的. 概述 Objc Runtime使得C具有了面向对象能力,在程序执行时创建,检查.改动类.对象和它们的方法.Runtime是C和汇编编写的,这里http ...

  4. IOS obj-c、c、c++混编

    今天发现这个问题,上网找了一下资料,发现原来如下: .m 文件可以混合c 和 objective-c 代码 .mm  文件可以混合 c c++ objective-c 代码 .c  .cpp  不能混 ...

  5. [Draft]iOS.ObjC.Pattern.Builder-Pattern

    Builder Pattern in Objective-C Reference 1. The Builder pattern in Objective-C Published on 04 Apr 2 ...

  6. iOS入门及ObjC语法

    iOS入门:http://www.jonathanhui.com/ios ObjC语法: http://www.jonathanhui.com/objective-c https://github.c ...

  7. ios资源

    ios 资源 分类: ios开发2012-05-30 16:39 573人阅读 评论(0) 收藏 举报 ios文档calendar2010reference图像处理 学习过程当中查找到的资料,做一个记 ...

  8. 【转】IOS开发资源汇总

    转自:http://blog.csdn.net/favormm/article/details/6664970 如何用Facebook graphic api上传视频: http://develope ...

  9. Android&iOS崩溃堆栈上报

    Android&iOS崩溃堆栈上报 原文地址:http://www.cnblogs.com/songcf/p/4885468.html 通过崩溃捕获和收集,可以收集到已发布应用(游戏)的异常, ...

随机推荐

  1. 常用数据库4 mongodb

    知识内容: 1.mongodb介绍与基本使用 2.mongodb操作 一.mongodb介绍与基本使用 1.mongodb介绍 Mongodb是一款强大,灵活,且易于扩展的通用型数据库.它能扩展出非常 ...

  2. create a bootable USB stick on Ubuntu

    https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu?_ga=2.141187314.17572770 ...

  3. 8. myeclipse10 svn插件安装

    1.在myeclipse安装目录下找到dropins文件夹,并在下面创建svn文件夹 2. 解压site-1.8.22.zip 3. 4. 5. 6.

  4. angularjs 整合 bootstrap

    第一步 :下载 bootstrap  jquery  ppper.js npm install bootstrap@4.0.0-beta.2 jquery popper.js --save 第二步: ...

  5. Redis 通用操作2

    01, 一次设置多个键值 => mset key1 value1 key2 value2 key3 value3 ...... 02, 一次获取多个值 => mget ke1 key2 k ...

  6. SQL 2008 启用和禁用xp_cmdshell

    xp_,cmd,cmdshell -- 允许配置高级选项EXEC sp_configure 'show advanced options', 1GO-- 重新配置RECONFIGUREGO-- 禁用x ...

  7. as2 fla 关于影片在时间轴的问题

    多帧上面放着没实例名而且里面内容一致的影片,主要一开始读取了,那么跳帧的时候.会自动获取当前帧上的相同内容的影片. 但如果内容不一致的影片,那么在跳帧后,不会获取当前的影片,旧的影片也无法获取.只在当 ...

  8. 遍历Datatable

    //方法一 DataSet dataSet = new DataSet(); DataTable dt = dataSet.Tables[]; ; i < dt.Rows.Count; i++) ...

  9. 使用plsql进行查询的时候出现错误:动态执行表不可访问,本会话的自动统计被终止

  10. cmd 查看本地端口被占用程序

    netstat -ano 列出当前活动的网络连接 参数:-a所有侦听端口  -n以数字格式显示地址和端口号 -o显示进程号 tasklist|find "8888" 找出占用888 ...