objective c - Turn Deprecation Warnings Back On -


after creating new target in ios project, there tons of deprecation warnings. i want see these in other targets, too.

i've searched whole project deprecated (as this answer indicate) , i've looked -w (as mentioned here), , found did this:

#pragma clang diagnostic ignored "-warc-performselector-leaks" 

in 1 or 2 places, that's not it. i've looked @ answers regarding suppressing warnings, haven't found shut off.

where else might deprecation warnings been shut off? turn warnings on.

example

this should result in warning:

self.numericlabel.linebreakmode = uilinebreakmodeclip;// nslinebreakbyclipping; 

because comments folded default , missed, elaborating on greg's comment example.

deprecation warnings printed if deployment target newer first deprecation of api.

example 1: using: [twtweetcomposeviewcontroller cansendtweet] deprecation in apple's document:ns_deprecated(na, na, 5_0, 6_0) deployment target: ios 5.0 ios sdk: 6.1 warning: no  example 2: using: [twtweetcomposeviewcontroller cansendtweet] deprecation in apple's document:ns_deprecated(na, na, 5_0, 6_0) deployment target: ios 6.1 ios sdk: 6.1 warning: yes 

in example1, apple's deprecation document states api introduced in ios 5.0 , deprecated in ios 6.0. although ios sdk(xcode) 6.1, not getting warning since deployment target ios 5.0 need api.

in example2, changed deployment target ios 6.1 , warning started appearing.

conclusion: deployment target lowest ios version want app support. if set version that's subsequent deprecation of api, warnings start showing in xcode


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -