阅读背景:

为什么我的UIViewController类不跟踪NSArray实例变量

来源:互联网 

Hey, I am new to Objective-C 2.0 and Xcode, so forgive me if I am missing something elementary here. Anyways, I am trying to make my own UIViewController class called GameView to display a new view. To work the game I need to keep track of an NSArray that I want to load from a plist file. I have made a method 'loadGame' which I want to load the correct NSArray into an instance variable. However it appears that after the method executes the instance variable loses track of the array. Its easier if I just show you the code....Hey, I am new to Objective-C 2.0 and Xcode, so




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: