<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ? # iOS8 用UITableViewRowAction實現Cell自定義滑動操作 在iOS 8以前,如果想自定義一個UITableViewCell的滑動操作是一件比較麻煩的事情,系統只支持刪除,如果我們想加上一個類似于“置頂”的操作需要處理不少邏輯,而進入iOS 8以后,系統提供了UITableViewRowAction以及新的delegate方法,使得自定義一些操作變得非常容易,如果想加上一個置頂,只需要這樣: ~~~ override?func?tableView(tableView:?UITableView, editActionsForRowAtIndexPath indexPath:?NSIndexPath) -> [AnyObject]? { ? ??let?topAction =?UITableViewRowAction(style: .Default, title:?"置頂") { ? ? ? ? (action:?UITableViewRowAction!, indexPath:?NSIndexPath!) ->?Void?in ? ? ? ? tableView.editing?=?false ? ? } ? ??return?[topAction] } ~~~ 在這里可以添加任意多個操作。要確保這個代碼生效,還是需要實現commitEditingStyle這個delegate方法,哪怕里面什么也不處理:? ~~~ override?func?tableView(tableView:?UITableView, commitEditingStyle editingStyle:?UITableViewCellEditingStyle, forRowAtIndexPath indexPath:?NSIndexPath) { } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看