问题:支付宝钱包和支付宝有什么区别 OC仿支付宝我的界面。
描述:

自已的视图下拉时,会出现tableView的背景色,和tableView.headerView与Navbar的颜色不一样。
但如果tableView的背景色设为和Navbar的一样,那tableView下面的section的颜色又很难看了。

上代码:

        UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, KYScreenWidth, KYScreenHeight) style:UITableViewStyleGrouped];
        tableView.delegate = self;
        tableView.dataSource = self;
        tableView.backgroundColor = KYCommonBgColor;
        tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
        tableView.sectionHeaderHeight = 20;
        tableView.sectionFooterHeight = 0;
        tableView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
        [self.view addSubview:tableView];
        _tableView = tableView;

        UIImageView *backView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.ky_width, 80)];
        backView.image = [UIImage createImageWithColor:KYNavbarColor];
        backView.userInteractionEnabled = YES;
        _tableView.tableHeaderView = backView;

支付宝效果:

我的效果:


解决方案1:

已经换了另一种方式,去掉了原生NavigationBar,自己模拟了一个

上一篇OC下 md5或sha1加密汉字得到的结果与服务端不同,但英文加加密结果相同,求解
下一篇怎么在scrollview中添加另一个ViewController的view
明星图片
相关文章
《支付宝钱包和支付宝有什么区别 OC仿支付宝我的界面。》由码蚁之家搜集整理于网络,
联系邮箱:mxgf168#qq.com(#改为@)