Possible to save an integer array using NSUserDefaults on iPhone?

后端 未结 4 2061
后悔当初
后悔当初 2020-12-05 21:34

Is it possible to save an integer array using NSUserDefaults on the iPhone? I have an array declared in my .h file as: int playfield[9][11] that gets filled wi

4条回答
  •  天涯浪人
    2020-12-05 22:08

    You'll have to convert this to an object. You can use NSArray or NSDictionary.

提交回复
热议问题