当前位置: 首页 > news >正文

wordpress如何做网站线上营销有哪些

wordpress如何做网站,线上营销有哪些,如何把网站提交给百度,网站备案ip查询网站iPhone屏幕尺寸是有限的,如果需要显示的数据很多,可以先数据放到一个table中,先显示10条,table底部有一察看更多选项,点击察看更多查看解析的剩余数据。基本上就是数据源里先只放10条, 点击最后一个cell时, 添加更多的…

iPhone屏幕尺寸是有限的,如果需要显示的数据很多,可以先数据放到一个table中,先显示10条,table底部有一察看更多选项,点击察看更多查看解析的剩余数据。基本上就是数据源里先只放10条, 点击最后一个cell时, 添加更多的数据到数据源中. 比如:

  数据源是个array:

  NSMutableArray *items;

  ViewController的这个方法返回数据条数: +1是为了显示"加载更多"的那个cell

  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

  int count = [items count];

  return count + 1;

  }

  这个方法定制cell的显示, 尤其是"加载更多"的那个cell:

  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

  if([indexPath row] == ([items count])) {

  //创建loadMoreCell

  return loadMoreCell;

  }

  //create your data cell

  return cell;

  }

  还要处理"加载更多"的那个cell的选择事件,触发一个方法来加载更多数据到列表

  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

  if (indexPath.row == [items count]) {

  [loadMoreCell setDisplayText:@"loading more ..."];

  [loadMoreCell setAnimating:YES];

  [self performSelectorInBackground:@selector(loadMore) withObject:nil];

  //[loadMoreCell setHighlighted:NO];

  [tableView deselectRowAtIndexPath:indexPath animated:YES];

  return;

  }

  //其他cell的事件

  }

  加载数据的方法:

  -(void)loadMore

  {

  NSMutableArray *more;

  //加载你的数据

  [self performSelectorOnMainThread:@selector(appendTableWith:) withObject:more waitUntilDone:NO];

  }

  添加数据到列表:

  -(void) appendTableWith:(NSMutableArray *)data

  {

  for (int i=0;i<[data count];i++) {

  [items addObject:[data objectAtIndex:i]];

  }

  NSMutableArray *insertIndexPaths = [NSMutableArray arrayWithCapacity:10];

  for (int ind = 0; ind < [data count]; ind++) {

  NSIndexPath *newPath = [NSIndexPath indexPathForRow:[items indexOfObject:[data objectAtIndex:ind]] inSection:0];

  [insertIndexPaths addObject:newPath];

  }

  [self.tableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationFade];

  }


tabview 滚动到指定行



NSIndexPath*indexPath = [NSIndexPathindexPathForRow:theIndexpathRowinSection:0];

[self.tableviewscrollToRowAtIndexPath:indexPathatScrollPosition:UITableViewScrollPositionTopanimated:YES];


NSIndexPath*indexPath = [NSIndexPathindexPathForRow:theIndexpathRowinSection:0];

[self.tableviewscrollToRowAtIndexPath:indexPathatScrollPosition:UITableViewScrollPositionTopanimated:YES];

http://www.wooajung.com/news/33615.html

相关文章:

  • 公司该建哪种网站常见的网络营销方法有哪些
  • 哪个购物平台质量好价格合适seo咨询服务价格
  • 网站的网络推广方案广州新闻报道
  • 网站公司的未来搜索排名优化策划
  • 免费下载代码项目的网站优书网首页
  • 做造价在那个网站比较好企业网站优化排名
  • 旅游网站建设策划方案书百度精准获客平台
  • 邢台做网站哪家好网推渠道
  • 网站做竞价东莞做网站排名优化推广
  • 自己做个网站好还是做别人会员好营销页面
  • wordpress后台中文沈阳网站关键字优化
  • 动态网站建设步骤界首网站优化公司
  • 做网站总结作文宁波抖音seo搜索优化软件
  • 盐城高端网站制作公司贵州seo推广
  • 江西网站制作公司西安外包网络推广
  • 网站404页面优化小学生班级优化大师
  • 微信官网网站模板河北百度seo关键词排名
  • 小户型室内装修设计公司网站站内营销推广方案
  • jquery 苹果网站网站关键词优化价格
  • iis部署网站提示建设中软文案例
  • 建设网站 无法显示图片热搜榜排名前十
  • 付费的网站推广该怎么做推广网站免费
  • 网站建设的基本要求关键词的优化方案
  • 卡通网站建设长沙seo代理商
  • 网站底部图标代码优化大师app下载
  • 一般做网站用什么字体比较合适写软文是什么意思
  • 网站建设的流程深圳网站页面设计
  • 用什么给网站做测试国内搜索引擎网站
  • 做ppt在哪些网站可以卖钱百度法务部联系方式
  • 外贸网站服务器推荐自己如何做网站