iOS开发中,__attribute__ 使用场景
来源:互联网 发布:ubuntu java环境搭建 编辑:程序博客网 时间:2024/05/10 06:46
在AvailabilityMacros.h 里,定义了很多有用的宏:
1,__attribute__(( deprecated()))
在外边使用Model的属性或方法时,编译器就会提出警告,形如下图:
这样在废弃有些属性时,可以给人提醒。当然系统的DEPRECATED_MSG_ATTRIBUTE(s)也是可以使用。
2, __attribute__((unavailable()))
在外边使用Model的属性或方法时,编译器就会提出警告,形如下图:
0 0
- iOS开发中,__attribute__ 使用场景
- iOS中__attribute__的使用
- iOS开发 runtime使用场景
- linux中__attribute__使用详解
- iOS 中Block的使用场景
- 嵌入式开发中volatile关键词使用场景
- [iOS]__attribute__
- IOS中@property中strong,weak,assgin,copy使用场景
- C++中__attribute__((packed))不能使用
- 【iOS-Cocos2d游戏开发】使用cocosBuiler制作cocos2d场景
- 【iOS-Cocos2d游戏开发】使用cocosBuiler制作cocos2d场景
- iOS开发笔记25--Associative机制使用场景
- iOS开发:runtime原理简单分析和基本使用场景
- iOS开发:runtime原理简单分析和基本使用场景
- __attribute__使用
- 【Android基础学IOS开发】__cplusplus extern __attribute__
- IOS开发场景之间跳转
- 开发中sqlite几种常见的使用场景
- 在activity之间传递handler(二)
- 服务器时间没同步.---ntpdate
- Ucenter的用户注册和登录分析
- WIN10 64bit python3.4 安装 numpy scipy matplotlib
- linux_换行转换
- iOS开发中,__attribute__ 使用场景
- CheatSheet – 显示当前程序快捷键列表[Mac]
- 基于EF4.1的异构数据库访问组件
- 《Contrast Limited Adaptive Histogram Equalization》
- Verilog 中连接符使用注意事项
- JavaScript的那些坑之事件冒泡
- ajax请求失败但是返回200
- ORA-00445: background process " " did not start after 120 seconds
- VS2008 ---- VS2013各个版本下载地址