トップページ > 新・mac > 2014年08月15日 > iZho1Ezx0

書き込み順位&時間帯一覧

12 位/47 ID中時間01234567891011121314151617181920212223Total
書き込み数0100000000000000000000001



使用した名前一覧書き込んだスレッド一覧
名称未設定
[SDK]iPhoneアプリ開発初心者質問箱39[touch][iPad]

書き込みレス一覧

[SDK]iPhoneアプリ開発初心者質問箱39[touch][iPad]
867 :名称未設定[sage]:2014/08/15(金) 01:15:20.38 ID:iZho1Ezx0
ちゃんと公式のドキュメントに丁寧に説明あるよ
https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW2


Important: If you use @synthesize without specifying an instance variable name, like this:
@synthesize firstName;
the instance variable will bear the same name as the property.
In this example, the instance variable will also be called firstName, without an underscore.

もし@synthesizeを変数指定なしで使ったら、インスタンス変数名はプロパティ名と同じになる


もちろん、Auto-synthesizeのほうはアンダースコアありで定義されるからその違いはあってややこしいけど。
まあAuto-synthesize使ってる限り、ここにいちいち悩む必要性は全く無いわけだが


※このページは、『2ちゃんねる』の書き込みを基に自動生成したものです。オリジナルはリンク先の2ちゃんねるの書き込みです。
※このサイトでオリジナルの書き込みについては対応できません。
※何か問題のある場合はメールをしてください。対応します。