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 4 でドット表記を使用すると、コード補完が機能しません (ESC を押す):
NSString *s = @"demo"; NSLog(@"%lu", [s length]); //[s <ESC> code completion works fine NSLog(@"%lu", s.length); //s.<ESC> code completion doesn't work
??
プロパティに有効な @property アクセサーが定義されていることを確認してください。
// .h で
@property (代入) int 長さ;
// .m で
@synthesize 長さ;
独自のアクセサーとセッターを使用できることに注意してください。ただし、ドット表記を表示するにはコードセンスに @property が必要だと思います。