我把這個X-代碼:「方法定義不在@implementation上下文中」?
- (void)viewDidLoad {
[super viewDidLoad];
NSString *path = [[NSBundle mainBundle] pathForResource:@"DrinkArray" ofType:@"plist"];
NSMutableArray* tmpArray = [[NSMutableArray alloc] initWithContentsOfFile:path];
self.drinks = tmpArray;
[tmpArray release];
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
它說,這在第一行:
"Method Definition not an @implementation context"
誰能幫助?
謝謝,我只是放錯了地方的自營權之前把它。我把它移動了幾行,它工作。 – Nathan 2010-05-24 22:11:59