私はこれが初めてなので、どんな助けでも大歓迎です。前もって感謝します
.h
IBOutlet UITextField *textField1;
IBOutlet UITextField *textField2;
IBOutlet UILabel *label1;
@end
.m
-(IBAction)calculate { **This is the line with the problem**
int x = ([textField1.text floatValue]);
int c = x*([textField2.text floatValue]);
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end