Is objectAtIndexedSubscript available in IOS5?

前端 未结 4 1595
慢半拍i
慢半拍i 2021-01-03 09:25

The documentation says it\'s available in MacOS 1.08.

So what\'s the story? What about for iOS5?

It\'s a very important selector because self[5] will actuall

4条回答
  •  攒了一身酷
    2021-01-03 10:03

    If you need your code to run on iOS 5, you'll need to replace

    myOrderedSetOfHilariousAcronyms[2] = @"ROFL";
    

    with

    [myOrderedSetOfHilariousAcronyms setObject:@"ROFL" atIndex:2];
    

提交回复
热议问题