Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「自己」の使用を忘れる適切な方法を知っている人はいますか? 変数を設定するとき?警告をトリガーできる xcode コンパイラ設定はありますか? 「自己」を確実に存在させるための最も簡単な方法を考えようとしています。割り当ての前に絶対確実。
これまでのところ、私が提案できる最善の方法は、ivar とプロパティ名を次のように区別することです。
@implementation Person @synthesize firstName = firstName_; @end
そのため、絶対確実ではありませんが、間違いを犯すことは困難です。