久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <tfoot id='WX1y6'></tfoot>
      <i id='WX1y6'><tr id='WX1y6'><dt id='WX1y6'><q id='WX1y6'><span id='WX1y6'><b id='WX1y6'><form id='WX1y6'><ins id='WX1y6'></ins><ul id='WX1y6'></ul><sub id='WX1y6'></sub></form><legend id='WX1y6'></legend><bdo id='WX1y6'><pre id='WX1y6'><center id='WX1y6'></center></pre></bdo></b><th id='WX1y6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WX1y6'><tfoot id='WX1y6'></tfoot><dl id='WX1y6'><fieldset id='WX1y6'></fieldset></dl></div>

      <small id='WX1y6'></small><noframes id='WX1y6'>

        <legend id='WX1y6'><style id='WX1y6'><dir id='WX1y6'><q id='WX1y6'></q></dir></style></legend>
          <bdo id='WX1y6'></bdo><ul id='WX1y6'></ul>

        如何將滑動(dòng)手勢(shì)添加到 UITableView 單元格?

        How to add Swipe Gestures to UITableView cell?(如何將滑動(dòng)手勢(shì)添加到 UITableView 單元格?)

          <small id='LyHzu'></small><noframes id='LyHzu'>

        1. <i id='LyHzu'><tr id='LyHzu'><dt id='LyHzu'><q id='LyHzu'><span id='LyHzu'><b id='LyHzu'><form id='LyHzu'><ins id='LyHzu'></ins><ul id='LyHzu'></ul><sub id='LyHzu'></sub></form><legend id='LyHzu'></legend><bdo id='LyHzu'><pre id='LyHzu'><center id='LyHzu'></center></pre></bdo></b><th id='LyHzu'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LyHzu'><tfoot id='LyHzu'></tfoot><dl id='LyHzu'><fieldset id='LyHzu'></fieldset></dl></div>

          <legend id='LyHzu'><style id='LyHzu'><dir id='LyHzu'><q id='LyHzu'></q></dir></style></legend>
            <bdo id='LyHzu'></bdo><ul id='LyHzu'></ul>
              <tbody id='LyHzu'></tbody>

                <tfoot id='LyHzu'></tfoot>

                  本文介紹了如何將滑動(dòng)手勢(shì)添加到 UITableView 單元格?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我在 cellForRowAtIndexPath

                  中添加了這段代碼

                  UISwipeGestureRecognizer *gestureR = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeFrom:)];[gestureR setDirection:UISwipeGestureRecognizerDirectionRight];//|UISwipeGestureRecognizerDirectionRight)];[單元格 addGestureRecognizer:gestureR];

                  它工作正常.但我想要 UISwipeGestureRecognizerDirectionLeft 所以像這樣添加

                  [gestureR setDirection:UISwipeGestureRecognizerDirectionLeft|UISwipeGestureRecognizerDirectionRight)];

                  當(dāng)我檢查方向和狀態(tài)時(shí),我總是得到 3 = 3

                  - (void)handleSwipeFrom:(UISwipeGestureRecognizer *)recognizer {NSLog(@"%d = %d",recognizer.direction,recognizer.state);}

                  如果我只應(yīng)用一個(gè)手勢(shì),它就可以正常工作.我試圖一個(gè)一個(gè)地添加兩個(gè)手勢(shì).但它只會(huì)響應(yīng)一個(gè)手勢(shì).

                  如何添加第二個(gè)手勢(shì).我直接將一個(gè)手勢(shì)添加到 TableView 另一個(gè)手勢(shì)到單元格,但現(xiàn)在使用.

                  解決方案

                  試試這個(gè)

                  <上一頁(yè)>UISwipeGestureRecognizer* 手勢(shì)R;手勢(shì)R = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom)] autorelease];手勢(shì)R.direction = UISwipeGestureRecognizerDirectionLeft;[查看 addGestureRecognizer:gestureR];手勢(shì)R = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom)] autorelease];手勢(shì)R.direction = UISwipeGestureRecognizerDirectionRight;//默認(rèn)[查看 addGestureRecognizer:gestureR];

                  如果您想處理左右滑動(dòng)的不同功能,只需更改選擇器即可.

                  I added this code in cellForRowAtIndexPath

                  UISwipeGestureRecognizer *gestureR = [[UISwipeGestureRecognizer alloc]
                                                               initWithTarget:self action:@selector(handleSwipeFrom:)];
                          [gestureR setDirection:UISwipeGestureRecognizerDirectionRight];//|UISwipeGestureRecognizerDirectionRight)];
                          [cell addGestureRecognizer:gestureR];
                  

                  it works fine. But I want UISwipeGestureRecognizerDirectionLeft so Added like this

                  [gestureR setDirection:UISwipeGestureRecognizerDirectionLeft|UISwipeGestureRecognizerDirectionRight)];
                  

                  When I check with direction and state I am always getting 3 = 3

                  - (void)handleSwipeFrom:(UISwipeGestureRecognizer *)recognizer {    
                  
                      NSLog(@"%d = %d",recognizer.direction,recognizer.state);
                  }
                  

                  if I apply only one Gesture it works fine. I tried to add two gestures one by one. but it will responding for only one gesture.

                  How to add second gestures. I added directly to one gesture to TableView another one to cell but now use.

                  解決方案

                  Try this

                  UISwipeGestureRecognizer* gestureR;
                  gestureR = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom)] autorelease];
                  gestureR.direction = UISwipeGestureRecognizerDirectionLeft;
                  [view addGestureRecognizer:gestureR];
                  
                  gestureR = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom)] autorelease];
                  gestureR.direction = UISwipeGestureRecognizerDirectionRight; // default
                  [view addGestureRecognizer:gestureR];
                  

                  If you want to handle different functionalities on left and right swipes, just change the selectors.

                  這篇關(guān)于如何將滑動(dòng)手勢(shì)添加到 UITableView 單元格?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過(guò)點(diǎn)擊動(dòng)畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報(bào))
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標(biāo)已經(jīng)包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進(jìn)度圖像(iOS 5 屬性))

                • <legend id='7xolV'><style id='7xolV'><dir id='7xolV'><q id='7xolV'></q></dir></style></legend>
                      <tbody id='7xolV'></tbody>

                      • <bdo id='7xolV'></bdo><ul id='7xolV'></ul>

                        <tfoot id='7xolV'></tfoot>
                          <i id='7xolV'><tr id='7xolV'><dt id='7xolV'><q id='7xolV'><span id='7xolV'><b id='7xolV'><form id='7xolV'><ins id='7xolV'></ins><ul id='7xolV'></ul><sub id='7xolV'></sub></form><legend id='7xolV'></legend><bdo id='7xolV'><pre id='7xolV'><center id='7xolV'></center></pre></bdo></b><th id='7xolV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7xolV'><tfoot id='7xolV'></tfoot><dl id='7xolV'><fieldset id='7xolV'></fieldset></dl></div>

                        1. <small id='7xolV'></small><noframes id='7xolV'>

                            主站蜘蛛池模板: 久久久久久久91 | 日韩av啪啪网站大全免费观看 | 天天爱天天操 | 欧美在线视频一区二区 | 色婷婷综合久久久久中文一区二区 | 中文字幕亚洲视频 | 中国一级特黄真人毛片 | 性做久久久久久免费观看欧美 | 天天操天天干天天透 | 久久久免费毛片 | 国产精彩视频一区 | 一级片免费视频 | 免费一级黄色 | 色天天综合 | 欧美日韩亚洲一区二区 | 日韩欧美视频 | 久国产视频 | 亚洲精品国产成人 | 欧美二区乱c黑人 | 91精品国产91久久久久久 | 区一区二区三在线观看 | 久久免费国产 | 亚洲一av | 国产视频精品在线观看 | 日韩成人在线播放 | 97超碰人人 | 国产一区| 国产综合久久 | 黄网站在线观看 | 久久99国产精一区二区三区 | 一级片在线观看视频 | www.久久艹 | 中文字幕一区二区三区四区 | 亚洲视频一区在线观看 | 三级黄视频在线观看 | 国产精品麻 | aaa天堂| 精精精精xxxx免费视频 | 在线不卡视频 | 成人精品一区二区 | 免费看av大片 |