久久久久久久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>
                          主站蜘蛛池模板: 97人人艹| 久久五月婷 | 欧美黑人性猛交 | 亚洲精品视频在线观看免费 | 神马福利视频 | 亚洲视频在线观看免费 | 亚洲午夜激情 | 中文字幕丰满人伦在线 | 成人国产综合 | 麻豆国产一区二区三区四区 | 亚洲一区二区欧美 | 在线观看黄色小视频 | 久久久香蕉 | 人人干人人看 | 成人在线播放视频 | 成年人视频网站 | 午夜av在线播放 | 日韩在线观看av | 色婷婷视频在线观看 | 福利小视频在线观看 | 日韩精品片 | 国产在线观看一区 | 在线观看二区 | 亚洲激情综合网 | 福利视频免费观看 | 久久视频免费 | 国产三级视频在线播放 | 日韩大片在线观看 | 国产农村妇女aaaaa视频 | 国产黄视频在线观看 | 欧美成人一区二区三区 | 六月激情 | 日韩欧美一区二区三区久久婷婷 | 亚洲黄色一级 | 亚洲精品久久久久久久久久久 | 一区二区三区四区在线 | 国产免费黄色 | 国产精品毛片va一区二区三区 | 夜夜操av | 六月天婷婷 | 欧美在线不卡 |