UILabel *employeeNumLabel
Firstviewcontroller クラスに があります。次に、そのラベルのテキストを secondviewcontroller クラスのメソッドから変更したいと思います。Secondviewcontroller クラスに次のコードを追加しました。
-(IBAction)save:(id)sender{
number ++;
NSString * numberString = [NSString stringWithFormat:@"%d",number];
[employeeNumLabel setText:numberString];
}
しかし、エラーが表示されています: use of undeclared identifier employeeNumLabel
。Firstviewcontroller.h を Secondviewcontroller.m クラスにインポートしましたが。