zoukankan      html  css  js  c++  java
  • IOStableviewsectionSet

    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
    {
        if (tableView == self.searchDisplayController.searchResultsTableView)
        {
            return nil;
        }
        UIView *headView = [[[UIView alloc]init]autorelease];
        headView.backgroundColor = [UIColor clearColor];
        if (section!=0)
        {
            //标题背景
            UIView *biaotiView = [[[UIView alloc]init]autorelease];
            biaotiView.backgroundColor = BB_White_Color;
            biaotiView.frame=CGRectMake(0, 0, 320, 30);
            [headView addSubview:biaotiView];
             
            //标题文字
            UILabel *lblBiaoti = [[[UILabel alloc]init]autorelease];
            lblBiaoti.backgroundColor = [UIColor clearColor];
            lblBiaoti.textAlignment = NSTextAlignmentLeft;
            lblBiaoti.font = [UIFont systemFontOfSize:15];
            lblBiaoti.textColor = [UIColor blackColor];
            lblBiaoti.frame = CGRectMake(15, 7.5, 200, 15);
            lblBiaoti.text = [headerList objectAtIndex:section-1];
            [biaotiView addSubview:lblBiaoti];
        }
        return headView;
    }
  • 相关阅读:
    Exp8 Web综合
    Exp7 网络欺诈防范
    更新Linux下openssl路径和库路径
    CVE-2019-5786漏洞利用复现
    Exp6 MSF应用基础
    CVE-2020-11651漏洞利用复现
    Exp5 信息搜集与漏洞扫描
    Exp4 恶意代码分析
    快速搭建SpringBoot项目
    Java split() 方法注意事项
  • 原文地址:https://www.cnblogs.com/wcLT/p/4674917.html
Copyright © 2011-2022 走看看