Search code examples
iphoneiosipadibaction

IBAction not being called


I am building an app with interface builder for the iPad. The scroll view takes up most of the screen except for a small portion at the bottom. Scrolling is enabled downwards. In the small portion on the bottom (not inside the scrollview), there is a UIButton that is connected to an IBAction:

- (IBAction)submit:(id)sender; 

And implemented as follows:

- (IBAction)submit:(id)sender
{
    NSLog(@"submit called");
}

I have connected up IBActions to buttons in IB countless times and never had a problem... But for some reason this is not getting called. I hooked it up by selecting the Button->connections inspector -> touch up inside -> files owner -> submit... Has anyone had this problem?


Solution

  • Turns out it was a problem with xCode... I updated and the problem went away.