Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Auto Layout? Oh boy!

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

Auto Layout? Oh boy!

Slides of my presentation "Auto Layout? Oh boy!" at UIKonf

Cesare Rocchi

May 02, 2013

Transcript

102 slides
  1. Frames UIView *newView = [[UIView alloc] initWithFrame: CGRectMake(10, 10, 100,

    100)]; [self.view addSubview:newView]; CGRect frame = newView.frame; frame.size.height = 200; frame.size.width = 200; frame.origin.x = 20; frame.origin.y = 20; newView.frame = frame;
  2. Frames UIView *newView = [[UIView alloc] initWithFrame: CGRectMake(10, 10, 100,

    100)]; [self.view addSubview:newView]; CGRect frame = newView.frame; frame.size.height = 200; frame.size.width = 200; frame.origin.x = 20; frame.origin.y = 20; newView.frame = frame; newView.center = newView.superview.center;
  3. Wife: “Honey are you still working with that auto layout

    thing?” Me: “Yeah, how do you know?”
  4. Wife: “Honey are you still working with that auto layout

    thing?” Me: “Yeah, how do you know?” Wife: “Because I am hearing more ‘f*ck’ and ‘sh!t’ than usual”.
  5. ?

  6. ax + by = c 2x + 2y = 4

    Linear equations
  7. ax + by = c 2x + 2y = 4

    => [x = 1, y = 1] Linear equations
  8. ax + by = c 2x + 2y = 4

    => [x = 1, y = 1] 2(x+5)-7 = 3(x-2) Linear equations
  9. ax + by = c 2x + 2y = 4

    => [x = 1, y = 1] 2(x+5)-7 = 3(x-2) => [x = 9] Linear equations
  10. One solution “Hey lady, you got the love I need

    ...” Over the Hills and Far Away - Led Zeppelin
  11. “Pleased to meet you hope you guess my name ...”

    No solution Sympathy For The Devil - The Rolling Stones
  12. Zen

More Decks by Cesare Rocchi

Other Decks in Technology