[ ]を使って要素にアクセスする機能の事
// 配列
NSArray *array = @[@"a", @"b", @"c"];
NSLog(@"%@ == %@", array[1], [array objectAtIndex:1]); // b == b
// 辞書
NSDictionary *dictionary = @{
@"a":@1,
@"b":@2
};
NSLog(@"%@ == %@", dictionary[@"a"], [dictionary objectForKey:@"a"]);// 1 == 1
Xcode 4.5から入った機能だけど、4.4でもSubscriptingを実装して使うことはできる
| Xcode 4.5 の変更点について | 1 |
|---|---|
| - | 2 |
| XCode4.4からの強化点 | 3 |
| その他 | 4 |
| 参考リンク | 5 |
| Table of Contents | t |
|---|---|
| Exposé | ESC |
| Full screen slides | e |
| Presenter View | p |
| Source Files | s |
| Slide Numbers | n |
| Toggle screen blanking | b |
| Show/hide slide context | c |
| Notes | 2 |
| Help | h |