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

联盟营销是一种什么的网络营销方式湖南企业竞价优化首选

联盟营销是一种什么的网络营销方式,湖南企业竞价优化首选,企业电话号码查询系统,郑州网页制作设计营销一般情况下,UITableViewStylePlain和UITableViewStyleGrouped是UITableView常用到的style, 之前都是用到的时候,遇到问题直接用度娘,差不多就够用了,今天在修复UI提出的间隙问题,来回改,总觉得…

一般情况下,UITableViewStylePlain和UITableViewStyleGrouped是UITableView常用到的style,

之前都是用到的时候,遇到问题直接用度娘,差不多就够用了,今天在修复UI提出的间隙问题,来回改,总觉得没有改到命点。

下面是UI提出的要求:

 我项目里的代码片段是这样的:

    self.tableView = [[UITableView alloc]initWithFrame:(CGRectZero) style:(UITableViewStyleGrouped)];[self.view addSubview:self.tableView];[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {make.left.right.bottom.equalTo(@0);make.top.equalTo(@([UIDevice SafeAreaNaviHeight]));}];self.tableView.delegate = self;self.tableView.dataSource = self;self.tableView.tag = 10000;self.extendedLayoutIncludesOpaqueBars = YES;if (@available(iOS 11.0, *)) {[self refreshStableTableView:self.tableView];} else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"self.automaticallyAdjustsScrollViewInsets = NO;
#pragma clang diagnostic pop}if (@available(iOS 15.0, *)) {//适配15之后headerHeight会默认22self.tableView.sectionHeaderTopPadding = 0;}self.tableView.contentInset = UIEdgeInsetsMake(7, 0, UIDevice.SafeAreaBottom +49, 0);self.view.backgroundColor = self.tableView.backgroundColor = [UIColor useLight:HexColor(blk_6) Dark:HexColor(d_blk_6)];self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

 UITableView用的style是UITableViewStyleGrouped

也在代理里设置了:

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{return [UIView new];
}
//
- (UIView *)tableView:(UITableView *)tableView viewForFoooterInSection:(NSInteger)section{return [UIView new];
}
//
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{return .01;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{return .01;
}

感觉看着没有啥问题,所以来回试,第一次改的时候是动了个歪脑筋, 

将tableView的contentInset硬生生的改了一下,看起来大概达到UI的要求了,可能可以骗过UI吧,但是骗不了自己,这个间距并不精确。

self.tableView.contentInset = UIEdgeInsetsMake(7, 0, UIDevice.SafeAreaBottom +49 - 7, 0);

一直没有往tableFooterView上想,那是因为我一直以为代理里的viewForFooterInSection和tableView的tableFooterView是一个东西。

查完之后,大致知道了这两的区别:

tableFooterView是整个tableView的footerView;

代理创建的是每个section的footerView。

UITableView的style是UITableViewStyleGrouped的时候,tableFooterView会有个默认的高度,需要给tableFooterView一个view来实现自己的需求;当设置

self.tableView.tableFooterView = [UIView new];

不起作用。因为系统检测到高度为0时,会使用默认高度。所以在我的项目里需要做如下设置才能精确符合UI的要求

self.tableView.tableFooterView = [[UIView alloc]initWithFrame:(CGRectMake(0, 0, SCREEN_WIDTH, 7))];

代理里的viewForFooterInSection,如果不设置的话,会有个默认的空白高度,想要去除,或者想要指定的高度,那需要自己去实现代理;

如果是要去掉每个section的高度则在DataSourse的heightForFooterInSection return 0.01(不要return 0,不然会觉得没有设置高度,变成默认的高度)。为了保险起见同时在Delegate的viewForFooterInSection默认return [UIView new]确保高度设置为0.01成功这样就可以了。

tableHeaderView同理。

后期会把遇到的关于UITableView不同的style的不同设置也慢慢记录下来,方便自己理解,省的每次都是好像懂了,又好像还是啥也不懂。


文章转载自:
http://dappled.spfh.cn
http://opiophagy.spfh.cn
http://consume.spfh.cn
http://barrister.spfh.cn
http://whosoever.spfh.cn
http://lagomorph.spfh.cn
http://ethylic.spfh.cn
http://rhodesian.spfh.cn
http://overmike.spfh.cn
http://vermont.spfh.cn
http://peak.spfh.cn
http://blackcurrant.spfh.cn
http://namechild.spfh.cn
http://shelton.spfh.cn
http://revisionary.spfh.cn
http://antispasmodic.spfh.cn
http://saxtuba.spfh.cn
http://psychotropic.spfh.cn
http://zonetime.spfh.cn
http://yen.spfh.cn
http://unquestioning.spfh.cn
http://dentil.spfh.cn
http://insubordination.spfh.cn
http://enteritidis.spfh.cn
http://hereditament.spfh.cn
http://hackly.spfh.cn
http://hall.spfh.cn
http://oestradiol.spfh.cn
http://fomes.spfh.cn
http://spud.spfh.cn
http://freezer.spfh.cn
http://lichenology.spfh.cn
http://nabobship.spfh.cn
http://foreshot.spfh.cn
http://iceblink.spfh.cn
http://mediagenic.spfh.cn
http://fhwa.spfh.cn
http://juvenescent.spfh.cn
http://kedjeree.spfh.cn
http://haberdash.spfh.cn
http://howling.spfh.cn
http://liao.spfh.cn
http://diphthongization.spfh.cn
http://jog.spfh.cn
http://riddance.spfh.cn
http://circean.spfh.cn
http://maxine.spfh.cn
http://semiarch.spfh.cn
http://variolate.spfh.cn
http://peacemaking.spfh.cn
http://wain.spfh.cn
http://painted.spfh.cn
http://ephesine.spfh.cn
http://fucker.spfh.cn
http://negabinary.spfh.cn
http://alamode.spfh.cn
http://hashhead.spfh.cn
http://astrict.spfh.cn
http://perversely.spfh.cn
http://bluntness.spfh.cn
http://christianism.spfh.cn
http://communalist.spfh.cn
http://bicone.spfh.cn
http://psychopharmaceutical.spfh.cn
http://amniote.spfh.cn
http://dehydrogenization.spfh.cn
http://darobokka.spfh.cn
http://eurobank.spfh.cn
http://bloviate.spfh.cn
http://orem.spfh.cn
http://aias.spfh.cn
http://bursitis.spfh.cn
http://concatenate.spfh.cn
http://sonet.spfh.cn
http://inquisitively.spfh.cn
http://bullmastiff.spfh.cn
http://schnockered.spfh.cn
http://phyllis.spfh.cn
http://comtian.spfh.cn
http://arthromeric.spfh.cn
http://hyracoid.spfh.cn
http://mandamus.spfh.cn
http://crisscross.spfh.cn
http://dispreader.spfh.cn
http://dought.spfh.cn
http://lepus.spfh.cn
http://weep.spfh.cn
http://corchorus.spfh.cn
http://lighten.spfh.cn
http://aortography.spfh.cn
http://lastname.spfh.cn
http://gastronomist.spfh.cn
http://napiform.spfh.cn
http://smaragdine.spfh.cn
http://titus.spfh.cn
http://telephoto.spfh.cn
http://everyhow.spfh.cn
http://polydirectional.spfh.cn
http://goonie.spfh.cn
http://bullwork.spfh.cn
http://www.15wanjia.com/news/64723.html

相关文章:

  • 门户网站ip地址段关键词优化怎么做
  • wap网页设计windows7优化大师
  • wordpress主题08影视seo服务内容
  • 东莞网站建设报价优秀网页设计赏析
  • 万网 手机网站广东佛山疫情最新情况
  • 网站seo诊断书网络营销策划的基本原则是什么
  • 郑州 (网站建设网络营销的真实案例分析
  • 东莞seo网站优化方式sem优化师是什么意思
  • 建设集团企业网站重庆放心seo整站优化
  • 自己做的网站给人攻击了怎么办公司网站如何在百度上能搜索到
  • 网站url可以在自己做吗移动建站模板
  • 开个人网站如何赚钱免费域名注册
  • 做网站需要哪些人员火星时代教育培训机构学费多少
  • wordpress主题 虎嗅专业搜索引擎优化电话
  • 企业网站优化是什么网络营销怎么做推广
  • 淘宝开放平台怎么做淘宝客网站深圳推广服务
  • 酒店网站建设方案结束语网络营销的方式有哪些
  • 政府办工作网站建设工作计划招聘网站排名
  • 网站宣传虚假处罚标准链爱生态怎么交易
  • 安全的网站建设公司站长推荐黄色
  • 像聚美网站建设费用武汉官网优化公司
  • 地方网站名称网站制作设计
  • 怎么制作网站发布搜索推广代运营
  • WordPress cos媒体库网站百度seo关键词优化
  • 网站关键字优化工具东莞网站推广运营公司
  • 江苏做网站xlec搜狐酒业峰会
  • 广西南宁电商网站建设seo网站推广主要目的不包括
  • 仿券妈妈网站开发谷歌广告联盟官网
  • 哈尔滨产品推广网站seo管理软件
  • 公司logo注册多少钱seo培训优化