I have a mac app and i want to make iOS version of it but my problem is i can't figure out how the coding work in iOS anyone know of an easy way to write iOS code for example combining 2 fields and displaying them into the third field i use for mac
.h
.m
is there something similar to that for iOS
.h
Code:
@property (weak) IBOutlet NSTextField *Field1;
@property (weak) IBOutlet NSTextField *Field2;
@property (weak) IBOutlet NSTextField *Answer;
- (IBAction)Calculate:(id)sender;
.m
Code:
- (IBAction)Calculate:(id)sender
{
float result = [_Field1 floatValue] + [_Field2 floatValue];
[_Answer setFloatValue:result];
}
is there something similar to that for iOS