Hello,
I'm very new to Objective C. I'm trying to figure out why when I press my UIButton it crashes when sender is in appendString: sender. Am I missing something?
If I change sender to a string @"World!" it works fine.
Thank You
I'm very new to Objective C. I'm trying to figure out why when I press my UIButton it crashes when sender is in appendString: sender. Am I missing something?
If I change sender to a string @"World!" it works fine.
Code:
- (IBAction) search:(id)sender{
NSMutableString* mystr = [NSMutableString stringWithString: @"Hello"];
[mystr appendString: sender];
}
Thank You
Last edited by a moderator: