<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>

          ASToastToast 風(fēng)格的消息提示

          聯(lián)合創(chuàng)作 · 2023-09-25 21:01

          ASToast 是一個(gè)用 Swift 寫成的擴(kuò)展,用于制作 Android Toast 風(fēng)格的通知。

          使用示例:

          // make a toast with single text
          self.view.makeToast("Single text toast")
          // make a toast with text, title, position and duration
          self.view.makeToast("Toast with custom text, title and duration", duration: NSTimeInterval(3.0), 
              position: ASToastPosition.ASToastPositionCenter.rawValue, title: "Title")
          // Make toast with an image
          self.view.makeToast("Toast with an image", duration: NSTimeInterval(3.0), 
              position: ASToastPosition.ASToastPositionTop.rawValue, image: UIImage(named: "apple_logo"))
          // Show a custom view as toast
          var customView: UIView! = UIView(frame: CGRectMake(0.0, 0.0, 200.0, 300.0))
          customView.autoresizingMask = UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleRightMargin | 
              UIViewAutoresizing.FlexibleTopMargin | UIViewAutoresizing.FlexibleBottomMargin
          customView.backgroundColor = UIColor.greenColor()
          self.view.showToast(customView, duration: NSTimeInterval(3.0), position: ASToastPosition.ASToastPositionCenter.rawValue)
          // Show activity indicator
          self.view.makeToastActivity()
          
          瀏覽 19
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <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片大全 | 天堂成人三级片网站 | 亚洲视频免费观看视频 | 国产在线观看国产精品产拍 | 美女日逼视频 |