Hi,
I have written a class and declared a variable. How can I reach it with different messages?
Interface-File Deklarations:
int value;
- (void)valueHasChangedint)v;
- (void)showIt;
Implementation-File:
- (void)valueHasChangedint)v {
value = v;
}
- (void)showIt {
NSString *sendtext = [NSString stringWithFormat"%i", value];
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:sendtext message" Here it is! " delegate:self
cancelButtonTitle"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}
I have written a class and declared a variable. How can I reach it with different messages?
Interface-File Deklarations:
int value;
- (void)valueHasChangedint)v;
- (void)showIt;
Implementation-File:
- (void)valueHasChangedint)v {
value = v;
}
- (void)showIt {
NSString *sendtext = [NSString stringWithFormat"%i", value];
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:sendtext message" Here it is! " delegate:self
cancelButtonTitle"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}