iOS 消除Xcode警告

 

 

 

 

- undeclared selector

 

#pragma clang diagnostic push

#pragma clang diagnostic ignored"-Wundeclared-selector"

 // 需要消除警告的语句 

#pragma clang diagnostic pop

 

 

 

- Category is implementing a method which will also be implemented by its primary class


#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"

 // 需要消除警告的方法 

#pragma clang diagnostic pop

 

 

 

- Convenience initializer missing a 'self' call to another initializer

#pragma clang diagnostic ignored "-Wobjc-designated-initializers"

 

 

 


 

转载请注明出处:http://www.cnblogs.com/ficow/p/6805339.html

posted @ 2017-05-04 09:33  Ficow  阅读(466)  评论(0编辑  收藏  举报