Created
November 25, 2012 23:48
-
-
Save ChrisRisner/4145909 to your computer and use it in GitHub Desktop.
ios day 17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface CustomObject : NSObject | |
@property (strong, nonatomic) NSString *name; | |
@property (strong, nonatomic) NSNumber *number; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation CustomObject | |
-(NSString *)description { | |
return [NSString stringWithFormat:@"\nName: %@ \nNumber: %@", self.name, self.number]; | |
} | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
- (IBAction)tappedButtonOne:(id)sender; | |
- (IBAction)tappedButtonTwo:(id)sender; | |
- (IBAction)tappedButtonThree:(id)sender; | |
- (IBAction)tappedButtonFour:(id)sender; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment