我用下面的代碼的圖控制器類:自方法沒有發現
-(void) awakeFromNib{
RootModel *rm = [RootModel sharedModel];
for(NSString *title in rm.rLevels) {
[self addNewButtonWithTitle:title];
}
}
// add a new button with the given title to the bottom of the list
- (void)addNewButtonWithTitle:(NSString *)title
{
// create a new button
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
}
語句
[self addNewButtonWithTitle:title];
生成一個警告:找不到 方法addNewButtonWithTitle。
不知道。
謝謝
謝謝!我剛剛添加它,它的工作。 – saman01