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

<legend id='b5Y4m'><style id='b5Y4m'><dir id='b5Y4m'><q id='b5Y4m'></q></dir></style></legend>

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

      <bdo id='b5Y4m'></bdo><ul id='b5Y4m'></ul>

      <tfoot id='b5Y4m'></tfoot>

    1. <small id='b5Y4m'></small><noframes id='b5Y4m'>

    2. 獲取 UITableview 中自定義單元格的行索引

      Get row index of custom cell in UITableview(獲取 UITableview 中自定義單元格的行索引)
          • <tfoot id='Mx7Ww'></tfoot>
            <legend id='Mx7Ww'><style id='Mx7Ww'><dir id='Mx7Ww'><q id='Mx7Ww'></q></dir></style></legend>
            <i id='Mx7Ww'><tr id='Mx7Ww'><dt id='Mx7Ww'><q id='Mx7Ww'><span id='Mx7Ww'><b id='Mx7Ww'><form id='Mx7Ww'><ins id='Mx7Ww'></ins><ul id='Mx7Ww'></ul><sub id='Mx7Ww'></sub></form><legend id='Mx7Ww'></legend><bdo id='Mx7Ww'><pre id='Mx7Ww'><center id='Mx7Ww'></center></pre></bdo></b><th id='Mx7Ww'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Mx7Ww'><tfoot id='Mx7Ww'></tfoot><dl id='Mx7Ww'><fieldset id='Mx7Ww'></fieldset></dl></div>

            1. <small id='Mx7Ww'></small><noframes id='Mx7Ww'>

                <tbody id='Mx7Ww'></tbody>
                <bdo id='Mx7Ww'></bdo><ul id='Mx7Ww'></ul>
                本文介紹了獲取 UITableview 中自定義單元格的行索引的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在開發一個 ipad 應用程序.我在應用程序中有一個 UITableview.UITableview 以編程方式創建,其中一個標簽和 textview 作為其子視圖.表格視圖中最多可以有五行.一次向用戶顯示 2 行.在運行時,它需要在 textview & 中輸入一些文本.將其保存在本地 sqlite 數據庫中.我已經在代碼中實現了 textViewDidBeginEditing 和 textViewDidEndEditing 委托.在 textViewDidEndEditing 委托中,我試圖在 NSMUtable 數組中添加/替換文本(在 textview 中輸入).為此,我輸入文本的文本視圖的行索引是必需的.這樣我就可以添加/替換數組中的相應行索引.

                I'm developing an ipad app. I have a UITableview in the app. The UITableview is created programatically with one label and textview as its subview. There can be a max of five rows in tableview. At a time 2 rows are displayed to the user. In runtime, its require to enter some text in the textview & save it in the local sqlite db. I have implemented the textViewDidBeginEditing and textViewDidEndEditing delegates in the code. In the textViewDidEndEditing delegate, Im trying to add/replace the text(entered in textview) in an NSMUtable array. For that the rowindex of the textview for which I enter the text is required. So that i can add/replace the respective row index in the array.

                請告訴我如何獲取文本視圖的行索引.

                Please let me know how to get the row index of the text view.

                推薦答案

                您的 TextView 將包含在某種單元格中.找到此單元格后,您可以向表格索取索引.從您的 TextView 向上導航到視圖層次結構以找到單元格.例如:

                Your TextView will be contained within some kind of cell. Once you have found this cell, you can ask the table for the index. Navigate from your TextView up the view hierarchy to find the cell. For example:

                TextView* textView = // your textView;
                UITableViewCell* cell = (UITableViewCell*)[textView superview];
                UITableView* table = (UITableView *)[cell superview];
                NSIndexPath* pathOfTheCell = [table indexPathForCell:cell];
                NSInteger rowOfTheCell = [pathOfTheCell row];
                NSLog(@"rowofthecell %d", rowOfTheCell);
                

                這篇關于獲取 UITableview 中自定義單元格的行索引的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經度計算 X 和 Y)
                CLLocation returning negative speed(CLLocation 返回負速度)
                Calculate bearing between two locations (lat, long)(計算兩個位置之間的方位角(緯度、經度))
                watchPosition() vs getCurrentPosition() with setTimeout(watchPosition() 與 getCurrentPosition() 與 setTimeout)
                iOS 6 breaks GeoLocation in webapps (apple-mobile-web-app-capable)(iOS 6 破壞了 webapps 中的 GeoLocation (apple-mobile-web-app-capable))
                Determine iPhone user#39;s country(確定 iPhone 用戶所在的國家)
                  • <bdo id='KcGZr'></bdo><ul id='KcGZr'></ul>

                          <tbody id='KcGZr'></tbody>
                        • <tfoot id='KcGZr'></tfoot>
                        • <legend id='KcGZr'><style id='KcGZr'><dir id='KcGZr'><q id='KcGZr'></q></dir></style></legend>

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

                          <i id='KcGZr'><tr id='KcGZr'><dt id='KcGZr'><q id='KcGZr'><span id='KcGZr'><b id='KcGZr'><form id='KcGZr'><ins id='KcGZr'></ins><ul id='KcGZr'></ul><sub id='KcGZr'></sub></form><legend id='KcGZr'></legend><bdo id='KcGZr'><pre id='KcGZr'><center id='KcGZr'></center></pre></bdo></b><th id='KcGZr'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KcGZr'><tfoot id='KcGZr'></tfoot><dl id='KcGZr'><fieldset id='KcGZr'></fieldset></dl></div>
                          主站蜘蛛池模板: 欧美黄色性生活视频 | 国产人成精品一区二区三 | 免费久久久 | 欧美一级久久精品 | 中文字幕乱码亚洲精品一区 | 成人超碰 | 免费亚洲婷婷 | 国产一级片网站 | 国产成人精品网站 | 亚洲精品视频免费观看 | 99久久99| 99国产精品久久久久 | 亚洲综合电影 | 国产999精品久久久影片官网 | 国产日韩欧美在线观看 | 国产精品久久亚洲 | 精品视频www | 一级国产精品一级国产精品片 | 亚洲视频在线播放 | 国产精品毛片一区二区在线看 | wwww.8888久久爱站网 | 亚洲视频免费观看 | 免费精品久久久久久中文字幕 | 欧美成人免费在线 | 日本一本视频 | 亚洲精品一区二区三区蜜桃久 | 亚洲国产成人在线视频 | 免费激情| 国产一二三视频在线观看 | 亚洲三级av | 中文字幕亚洲欧美日韩在线不卡 | 久操伊人 | 紧缚调教一区二区三区视频 | 精品视频久久久久久 | 黑人粗黑大躁护士 | 久久伊人一区 | 欧洲性生活视频 | 观看av | 国产精品免费观看 | 精品综合久久久 | 精品在线视频播放 |