I want to have this method [User logOut]; run when a user touches the Log Me out button in the following UIAlertView.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Logged in!" message:@"Logged in to App!" delegate:nil cancelButtonTitle:@"Okay" otherButtonTitles:@"Log me out", nil];
[alert show];
[alert release];
how would I go about doing that? The “Okay” works for the cancel button. I just need the other button/method to work.
thanks for any help
You can do something like;
And
Good luck,
Nathan