This seems to be a very basic problem, but it upsets me to the end and stops progress. When I click and drag from UIButtonor UIStepperto the view controller, the option to add IBActionconnections is not specified.
The view controller is called BuyNowVC, and in mine BuyNowVC.hI have:
@interface BuyNowVC : UIViewController {
IBOutlet UIButton *buyButton;
IBOutlet UIStepper *myStepper;
}
@property (nonatomic, retain) IBOutlet UIButton *buyButton;
@property (nonatomic, retain) IBOutlet UIStepper *myStepper;
- (IBAction)buttonPressed;
- (IBAction)stepperPressed;
And in BuyNowVC.m:
@synthesize buyButton;
@synthesize myStepper;
- (IBAction)buttonPressed {
NSLog(@"Button pressed!");
}
- (IBAction)stepperPressed {
NSLog(@"Stepper pressed!");
}
I definitely drag and drop Ctrl onto the view controller itself, but the only parameters I get with UIButtonand UIStepperare Action Segue: push, modal, custom. No sign buttonPressedor stepperPressed.
Edit
, VC, UIButton Segue View ( ), , , , .