20
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

プロパティやメソッドを非推奨にしてビルド時に警告メッセージを出す

LegacyClass.h
@interface LegacyClass : NSObject
@property(nonatomic, readonly) NSArray* bugs __deprecated_msg("いつまで経っても変更作業が終わりません");
- (void)attendDeathMarch __deprecated_msg("もうウンザリです。何も改善できません");
@end


呼び出してる箇所にこんな感じにXcodeへ表示される

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
20
Help us understand the problem. What are the problem?