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

          <bdo id='dwPJU'></bdo><ul id='dwPJU'></ul>
      2. <i id='dwPJU'><tr id='dwPJU'><dt id='dwPJU'><q id='dwPJU'><span id='dwPJU'><b id='dwPJU'><form id='dwPJU'><ins id='dwPJU'></ins><ul id='dwPJU'></ul><sub id='dwPJU'></sub></form><legend id='dwPJU'></legend><bdo id='dwPJU'><pre id='dwPJU'><center id='dwPJU'></center></pre></bdo></b><th id='dwPJU'></th></span></q></dt></tr></i><div id='dwPJU'><tfoot id='dwPJU'></tfoot><dl id='dwPJU'><fieldset id='dwPJU'></fieldset></dl></div>
      3. <legend id='dwPJU'><style id='dwPJU'><dir id='dwPJU'><q id='dwPJU'></q></dir></style></legend>
        <tfoot id='dwPJU'></tfoot>

        制作“加载更多"uitableviewcell 中的按钮?

        making a quot;load morequot; button in uitableviewcell?(制作“加载更多uitableviewcell 中的按钮?)
      4. <tfoot id='SpkK5'></tfoot>

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

          • <legend id='SpkK5'><style id='SpkK5'><dir id='SpkK5'><q id='SpkK5'></q></dir></style></legend>
              <bdo id='SpkK5'></bdo><ul id='SpkK5'></ul>
                1. <i id='SpkK5'><tr id='SpkK5'><dt id='SpkK5'><q id='SpkK5'><span id='SpkK5'><b id='SpkK5'><form id='SpkK5'><ins id='SpkK5'></ins><ul id='SpkK5'></ul><sub id='SpkK5'></sub></form><legend id='SpkK5'></legend><bdo id='SpkK5'><pre id='SpkK5'><center id='SpkK5'></center></pre></bdo></b><th id='SpkK5'></th></span></q></dt></tr></i><div id='SpkK5'><tfoot id='SpkK5'></tfoot><dl id='SpkK5'><fieldset id='SpkK5'></fieldset></dl></div>
                    <tbody id='SpkK5'></tbody>
                  本文介绍了制作“加载更多"uitableviewcell 中的按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  嘿,谁能指导我完成这个我在表中有大约 15 个条目我希望另外 15 个条目在最后一个 UITableViewCell 中提供更多负载.谁能帮帮我?

                  hey, Could any one guide me through this I have around 15 entries in table I would like another 15 to come up with the load more in last UITableViewCell. could anyone help me?

                  推荐答案

                  在tableview中显示一个额外的行,在

                  to show an extra row in the tableview, in

                  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
                      return dataRows+1;
                      }
                  

                  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
                  
                          //after setting tableviewcell
                  
                          if(indexPath.row==dataRows){
                  
                          cell.textLabel.text=@"Load More Rows";
                          }
                      }
                  

                   - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
                      {
                  
                      if(indexPath.row==dataRows){
                      //there you can write code to get next rows
                      }
                   }
                  

                  您需要根据显示的行更新 numberOfRows 变量.

                  You need to update the numberOfRows variable according to the displayed rows.

                  获取额外条目后,您可以使用以下方法将它们添加到现有条目数组中.您的原始数组应该是 NSMutableArray 才能使用此方法.

                  After fetching the extra entries, you can add them to the existing entries array using the following method. Your original array should be a NSMutableArray to use this method.

                  [originalEntriesArray addObjectsFromArray:extraEntriesArray];

                  这篇关于制作“加载更多"uitableviewcell 中的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
                  Game center facebook like(游戏中心 facebook 喜欢)
                  Objective-C++ importing C++ class fails, cassert not found(Objective-C++ 导入 C++ 类失败,未找到 cassert)
                2. <legend id='YYXPL'><style id='YYXPL'><dir id='YYXPL'><q id='YYXPL'></q></dir></style></legend>

                      1. <tfoot id='YYXPL'></tfoot>

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

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

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