uitableview-cell删除消息\tableViewForHeader自定义
来源:互联网 发布:阿里云服务器建站教程 编辑:程序博客网 时间:2024/05/21 14:58
yourcell.mm中
-(void)willTransitionToState:(UITableViewCellStateMask)state
{[super willTransitionToState:state];
if ((state & UITableViewCellStateShowingDeleteConfirmationMask) == UITableViewCellStateShowingDeleteConfirmationMask)
{
//显示删除btn
}
else
{
}
}
viewheader
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
if (_Array.count == 0)
{
return nil;
}
else
{
UIImageView *image= [[[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, width, h)] autorelease];
image.backgroundColor = [UIColor blackcolor];
image.alpha = 0.9f;
UILabel * headerLabel = [[UILabel alloc] initWithFrame:CGRectZero];
headerLabel.backgroundColor = [UIColor clearColor];
headerLabel.opaque = NO;
headerLabel.textColor = [UIColor whiteColor];
headerLabel.font = [UIFont boldSystemFontOfSize:16];
headerLabel.frame = CGRectMake(10.0, -10.0, 300.0, 45);
NSString *key = [_Array objectAtIndex:section];
if ([key isEqualToString:@"*"])
{
headerLabel.text = @"常用联系人";
}
else
{
headerLabel.text = [_Array objectAtIndex:section];
}
[image addSubview:headerLabel];
[headerLabel release];
return image;
}
}
- uitableview-cell删除消息\tableViewForHeader自定义
- 滑动删除uitableview cell
- UITableView 滑动Cell删除
- UITableView自定义Cell
- ios UITableview自定义cell
- <四>UITableView 自定义cell
- [IOSS]UITableView自定义cell
- UITableView 的 自定义cell
- UITableView的自定义cell
- UITableView 自定义cell
- UItableView中滑动删除 cell
- UITableView 删除特定的CELL
- UITableView 删除cell 的问题
- UITableView 左滑删除cell
- uitableview自定义cell,cell加载图片
- IOS UITableView 移动自定义cell
- Swift UITableView使用自定义cell
- IOS-UITableView 及自定义cell
- c++标准程序库 缺少的头文件
- oracle创建、修改表
- /libQtDBus.so.4
- JAVA MAP排序
- 如何默认schema
- uitableview-cell删除消息\tableViewForHeader自定义
- 优化PHP代码的42条建议
- 【VC控件】动态修改控件和弹出菜单上的文字内容及大小
- WEBENCH®工具与光电探测器稳定性
- 3DS文件的结构
- javascript面向对象编程-->继承
- 深入分析request_irq的dev_id参数作用
- 设置域用户有访问cube的权限
- Android之drawable state各个属性详解