久久久久久久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久久久无码国产精品 | 国产精品亚洲视频 | 伊人二区 | 久久最新| 欧美三级在线 | 久久精品国产一区二区电影 | 亚洲首页 | 国产激情在线播放 | 久久精品二区 | 美女在线国产 | 亚洲有码转帖 | 精精国产xxxx视频在线播放 | 国产精品网址 | 色综合美女| 最新中文字幕一区 | 久久大陆| 亚洲欧美aⅴ | h片免费在线观看 | 成人h免费观看视频 | 一级毛片在线看 | 免费观看av网站 | 日韩毛片中文字幕 | 国产97久久| 天天摸天天干 | 免费一区二区三区 | 91麻豆精品国产91久久久久久 | 999视频| 国产精品高潮呻吟久久 | 久草综合在线视频 | av色站| 久久精品久久久 | 国产日韩欧美激情 | 国产精品久久久久久久久久久久久 | 午夜一级做a爰片久久毛片 精品综合 | 久久精品com | 精品一区免费 | 国产精品久久久久久久久久久久久 | 国产精品久久国产精品 | 9久久婷婷国产综合精品性色 |