I am new to IOS/Objective C but programming in C++ / C / Java and a dozen other languages for decades...
I built the HelloWorld program on the IOS site - no problem.
Now I am trying to work my way through the samples in "iPhone SDK development".
I have a class MovieViewController
in the header file
BUT - I added a button in IB to the MovieViewController xib file and Ctrl Click the file owner and neither the property nor the action show up so obviously I cannot link the action to the button.
I only added the property to see if it would show up after having failed to get the action.
I have tried multiple variations of the action e.g.
but nothing ever shows up in IB.
Am I really doing something stupid here?
Help appreciated.
Dave.
I built the HelloWorld program on the IOS site - no problem.
Now I am trying to work my way through the samples in "iPhone SDK development".
I have a class MovieViewController
in the header file
Code:
#import <UIKit/UIKit.h>
@interface MovieViewController : UIViewController {
UILabel *titleLabel;
}
@property(nonatomic,retain) IBOutlet UILabel *titleLabel;
- (void) (IBAction)edit;
@end
BUT - I added a button in IB to the MovieViewController xib file and Ctrl Click the file owner and neither the property nor the action show up so obviously I cannot link the action to the button.
I only added the property to see if it would show up after having failed to get the action.
I have tried multiple variations of the action e.g.
Code:
- (IBAction) edit;
- (IBAction) edit: (id) sender;
Am I really doing something stupid here?
Help appreciated.
Dave.