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

Storyboardいいよ

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

 Storyboardいいよ

Storyboardについて話しました

Avatar for Ryota Hayashi

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) // ԫۚൺ } }