[Objective C];

[Objective C];

C

Created in the early 80's by a company called Stepstone.

Licensed by NeXT in 1988

Bought by Apple in 1996

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!

deck

By mikekavouras

deck

  • 281