Layout

UITableViewCell XIB Autolayout

XIBで作成したcellが崩れる崩れる。 'Detected a case where constraints ambiguously suggest a height of zero' こんな警告文まで出される始末。しかしxcode上では何も制約違反等は出ていない状態。 上手く動くコードと見比べてみて、ふと気付いたのが上手…

NSLayoutConstraintを使ってみる

早速使ってみたがうん楽ですね。 - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:)…