When I attempted to build the code given in chapter 3 I got the following error codes (5 total)
In the OutletsAndActionsViewController.h
I got the error Expected ',' before 'end'
here is all the code I have under OutletsAndActionsViewController.h :
Code:
// OutletsAndActionsViewController.h
// OutletsAndActions
//
#import <UIKit/UIKit.h>
@interface OutletsAndActionsViewController : UIViewController {
//---declaring the outlet----
IBOutlet UITextField *txtName;
}
//---expose the outlet as a property---//
@property (nonatomic, retain) UITextField *textName;
//---declaring the action--
-(IBAction) btnClicked: (id) sender
@end
Can someone explain to me what that error means and what the code should look like ?
Thank you