NSString *hello = @"Hello";
NSString *world = [hello stringByAppendingString:@", world!"];
NSLog(@"%@, %@", hello, world);Hello, world!
NSString *greeting = @"Hello, world!";
Hello, world!
type
name
value
NSString *name = @"access code";
float cohortNumber = 2.2;
Hello, C4Q!
Person *person = [Person new];
[person walk];object
action
Message Sending
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(0.0, 0.0, 100.0, 50.0);
button.backgroundColor = [UIColor lightGrayColor];
[button addTarget:self action:@selector(didTapButton:)
forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:button];
but...
Swift???
Swift 1.0 (stable) - September 9, 2014
Homework!