I am trying to hook up a UIButton
to a IBAction
in interface builder but IB will not show the method that I defined as an option to hook it up to.
- (IBAction)someAction:(id)sender;
That is what I have in the h file, and then in the M file I have
- (IBAction)someAction:(id)sender{
NSLog(@"Button Tapped."); }
The IB Document is connected to that class i know because that class also has a UIPicker
, and that connects fine.
Any help would be brilliant on this,
Thanks, Callaghan001.
I fixed this problem by reading in the Class file manually from Interface Builder. Just do File -> Read Class -> find the .h file you defined the IBAction in. -> open! Then Interface builder will say something like "one Class file parsed"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With