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. python带参数装饰器使用

    # -*- coding: utf-8 -* """TensorFlow指定使用GPU工具类 author: Jill usage: 方法上加@tf_with_devic ...

  2. 微信小程序教程系列

    微信小程序教程系列 来源:       https://blog.csdn.net/michael_ouyang/article/details/56846185 相关连接:http://blog.c ...

  3. jpa-入门测试

    package com.atguigu.jpa.test; import java.util.Date;import java.util.List; import javax.persistence. ...

  4. JAVA WebSocKet ( 实现简单的前后端即时通信 )

    1, 前端代码 HTML5 部分 <!DOCTYPE html> <html> <head> <meta charset="utf-8"& ...

  5. leetcode455

    public class Solution { public int FindContentChildren(int[] g, int[] s) { var listg = g.OrderBy(x = ...

  6. SQL 2008 启用和禁用xp_cmdshell

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

  7. FireDACQuery FDQuery New

    FDQuery FDQuery1->ChangeCount;也有UpdatesPending属性 FDQuery1->ApplyUpdates() ExecSQL('select * fr ...

  8. Spring cron 定时调度配置

    IDEA 或者 STS http://spring.io/guides/gs/scheduling-tasks/ spring  mvc : 结构: Seconds Minutes Hours Day ...

  9. ABAP-BarCode-2-Excel打印二维码

    以前用Excel打印过二维码看板标签,将实现过程备注下. 1.安装控件 安装文件:TBarCodeOffice.exe 2.控件注册 打开Excel,找到[选项] 在打开的界面选择[加载项],在活动应 ...

  10. 树莓派 Zero W+温度传感器DS18B20

    树莓派 Zero W+温度传感器DS18B20 作者:陈拓chentuo@ms.xab.ac.cn 2018.05.28/2018.06.01 0.  概述 用树莓派 Zero W读取DS18B20温 ...