stackViewを使ってボタンをつくった話

sun54907
November 28, 2017

 stackViewを使ってボタンをつくった話

potatotips #45 で話したものです。

sun54907

November 28, 2017

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

25 slides
  1. ςΩετ ࢖͍ํ let buttonView = ComponentButtonView.instantiate( data: .init(text: “Ϙλϯϥϕϧ”), style:

    .medium(.fill), colorType: .primary ) stackView.addArrangedSubview(buttonView)
  2. ςΩετ ໰୊఺ ▸ ৭ͷࢦఆ͕୯৭͔͠ରԠͯ͠ͳ͍ͷͰɺόϦΤʔγϣϯΛͭ ͚͍ͨ ▸ λοϓͯ͠৭͕มΘΔͷ͸ɺnormal, highlighted, disableͷ3 ύλϯ͔͠ͳ͍ͷͰɺશ෦ʹରԠ͍ͨ͠

    ▸ ໊લ͕͋Μ·Γؾʹೖͬͯͳ͍ ▸ xib͔Βੜ੒ͯ͠Δ͕ɺશ෦ίʔυͰੜ੒ͨ͠ํ͕࢖͍қͦ͏ ▸ ެ։ͯ͠Δ͚Ͳɺ·ͩಈ͔ͳ͍

More Decks by sun54907

Other Decks in Programming