<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          GaikaniOS 樣式

          聯(lián)合創(chuàng)作 · 2023-09-27 14:15

          Gaikan 是 Swift 中的一個 DSL 聲明 ,提供了強大的樣式功能。它是參照 JS 和 CSS 模塊中的 CSS 創(chuàng)建出來的。

          提供一個 Style 對象來設(shè)計 UIView(s) 。

          let myLabelStyle: Style = [  .Color: UIColor.redColor(),  .Border: Border(width: 1, color: UIColor.greenColor()),  .Font: UIFont(name: "Courier", size: 24),        
          ]/// ORlet myLabelStyle = StyleRule() { (inout style: StyleRule) -> () in
            style.color = UIColor.redColor()
            style.border = Border(width: 1, color: UIColor.greenColor())
            style.font = UIFont(name: "Courier", size: 24)
          }self.label.applyStyle(myLabelStyle)

          可查看樣品來了解如何將 Gaikan 集成到一個項目中。

          瀏覽 20
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美大吊操逼 | 找个免费的a片 | 不用播放器的av 大香蕉福利导航 | 精品1234 | 天天上天天干 |