Skip to content

Instantly share code, notes, and snippets.

@brettkelly
Created May 7, 2012 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettkelly/2629655 to your computer and use it in GitHub Desktop.
Save brettkelly/2629655 to your computer and use it in GitHub Desktop.
Adding IBOutlets for UI elements
#import <UIKit/UIKit.h>
@interface ECViewController : UIViewController
@property (strong, nonatomic) IBOutlet UILabel *usernameField;
@property (strong, nonatomic) IBOutlet UILabel *noteCountField;
@property (strong, nonatomic) IBOutlet UIButton *noteCountButton;
- (IBAction)retrieveUserNameAndNoteCount:(id)sender;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment