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

Storyboardいいよ

 Storyboardいいよ

Storyboardについて話しました

Ryota Hayashi

June 23, 2017
Tweet

More Decks by Ryota Hayashi

Other Decks in Technology

Transcript

  1. UIWindowΛى఺ʹhitTest͕࠶ؼతʹݺͼग़͞ΕΔ func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView?

    { if { for subview in subviews { if let hitView = subview. { return hitView } } return self } return nil }
  2. Self-Sizing Cells: ԫۚൺCell class GoldenRatioCell: UITableViewCell { override func systemLayoutSizeFitting(_

    targetSize: CGSize, …) -> CGSize { return CGSize(width: targetSize.width, height: targetSize.width * 0.618) // ԫۚൺ } }