Saturday, February 9, 2013

How to Deprecate a Method in Objective-C

To deprecate a method in objective C you can use __attribute__((deprecated)) like so:


- (id)initWithPermissions:(NSArray *)permissions __attribute__((deprecated));

source:
http://stackoverflow.com/questions/3908715/how-do-i-flag-a-method-as-deprecated-in-objective-c-2-0

keywords:
objc deprecate method

No comments:

Post a Comment