views:

105

answers:

4

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 my Sign Up button attached to this action in my view.

A: 

Set delegate to nil.

Tilo Mitra
Tried that. Still, nothing happens.
Josh Brown
In that case, this method is never getting called.
Tilo Mitra
A: 

Set a breakpoint where you call [alert show] to ensure that your code is called

My guess is that this method is not getting called at all. You've probably missed a connection in interface builder

pheelicks
A: 

Can you print out something or try to set breakpoints. If it does not print out anything or does not stop in breakpoint. I strongly believe that the method is never get called

vodkhang
A: 

I would check that all the connections are made in IB, if you're using IB to create the UI. Specifically, check whether the UIButton in your interface XIB that is supposed to call signUpBtnPressed:(id)sender has its Touch Up Inside event linked this method, and that the 'File's Owner' of the XIB is set to be the view controller that this method is in.

mvexel