去掉编译警告

在出现警告的地方,或者在pch中添加宏.
宏定义如下:

#pragma clang diagnostic ignored "-Wdeprecated-declarations"```


后面为需要忽略的类型.

那么怎么知道具体的类型呢.
1.右键点击警告.选中revael in issue navigator
![屏幕快照 2016-01-27 14.38.32.png](http://upload-images.jianshu.io/upload_images/653967-69a9b00c884bb63b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

2.左边会出现对应的警告,右键打开,选中revael in log
![屏幕快照 2016-01-27 14.40.36.png](http://upload-images.jianshu.io/upload_images/653967-b66f60288701548e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

3.类型如图显示.
![屏幕快照 2016-01-27 14.40.49.png](http://upload-images.jianshu.io/upload_images/653967-7f8f8c99478e2247.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

推荐阅读更多精彩内容