UIAlertView is not displayed. What am I doing wrong?
Here is the code:
-(IBAction)signUpBtnPressed:(id)sender
{
UIAlertView *alert = [
[UIAlertView alloc]
initWithTitle:@"k"
message:@"Thanks for Signing up!"
delegate:nil
cancelButtonTitle:@"Continue..."
otherButtonTitles:nil
];
[alert show];
[alert release];
}
I also have a Register button attached to this activity in my view.
+2
a source to share
7 replies
I would check that all connections are made in IB if you are using IB to create the UI. Specifically, check to see if UIButton
your interface has the XIB that should call the signUpBtnPressed:(id)sender
associated Touch Up Inside method and that the "file owner" of the XIB is set as the view controller that this method is in.
+1
a source to share