Help with Uitextfield....
- by Skov
Hey .... im working on a Iphone app ..i cant get this working:
i want this alert to show up if the text field is empty when clicking the button linked to "timedAlarm" and if the text filed has a text i want it to go ahead and do the local notification, every thing works fine, until i put in this code before all the code for the notification, i have tried a lot of ways, but it wont work, either the alert shows up, even if there is a text, or els the alert wont show.
- (IBAction) timedAlarm {
if (eventText.text != nil){
UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"Excuse Me !"
message:@"Plz enter an alarm text"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[message show];
[message release];
}else {
Hope u can help me :-D
Rene Skov