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;}IOStableviewsectionSet的更多相关文章
随机推荐
- os、sys和shutil模块
运行环境:python3 OS模块:os 模块提供了一个统一的操作系统的接口函数 下面的path指路径的意思 os.stat(file) #查询文件属性操作 os.sep #取代操作系统特定的路径分隔 ...
- codeforces 669E E. Little Artem and Time Machine(节点为map型的线段树)
题目链接: E. Little Artem and Time Machine time limit per test 2 seconds memory limit per test 256 megab ...
- BZOJ_1441_Min_数学+裴蜀定理
BZOJ_1441_Min_数学+裴蜀定理 Description 给出n个数(A1...An)现求一组整数序列(X1...Xn)使得S=A1*X1+...An*Xn>0,且S的值最小 Inpu ...
- Python项目使用memcached缓存
前言许多Web应用都将数据保存到MySQL这样的关系型数据库管理系统中,应用服务器从中读取数据并在浏览器中显示. 但随着数据量的增大.访问的集中,就会出现数据库的负担加重.数据库响应恶化. 网站显示延 ...
- c++中static的全部用法
要理解static,就必须要先理解另一个与之相对的关键字,很多人可能都还不知道有这个关键字,那就是auto,其实我们通常声明的不用static修饰的变量,都是auto的,因为它是默认的,就象short ...
- Android之APP模块编译
一,如何把app编进系统 a.源码编译,在packages/apps目录下有安卓原生的app,以Bluetooth为例,源码根目录下有Android.mk文件: packages\apps\Bluet ...
- 动画浅析-CAAnimation和CATransition
出处: http://blog.csdn.net/mad2man/article/details/17260887 //动画播放完之后不恢复初始状态 baseAnimation.removed ...
- 【205】C#实现远程桌面访问
参考:Remote Desktop using C#.NET 参考文件:TscForm.zip 本博客主要是讲述怎样用 .NET 平台中 Microsoft Terminal Services Cli ...
- E20180427-hm
创建: 2018/04/27 dissolve vi. 溶解; 融化,液化; 解散,散去; 分裂,分解; vt. 使溶解; 使(固态物)溶解为液体,使液化; 使消失,使消逝,消除; 使终止; c ...
- hihoCoder扩展欧几里得
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h&g ...