ios6tableView背景色及section的圆角问题
一、设置tableView背景透明
这个问题只在UITableViewStyleGrouped类型的UITableView中出现,UITableViewStylePlain类型的tableView没有这个问题,因为Group类型的TableView有个backgroundView,而plain类型的TableView没有(backgroundView属性为nil),目前看来,这可能因为backgroundView在中间挡住了背景色。
目前对于这个问题的解决方法是将Group类型的tableView的backgroundView设为一个新的空白View或简单的设置为nil.如下
tableView.backgroundView = [[UIView alloc]init]; tableView.backgroundColor = [UIColor clearColor];
或
tableView.backgroundView = nil; tableView.backgroundColor = [UIColor clearColor];
二、去掉Cell的边框(uitableViewGroup情况下)
UIView *tempView = [[UIViewalloc] init];
[cellsetBackgroundView:tempView];
tempView.backgroundColor = [UIColorwhiteColor];
[cell setBackgroundColor:[UIColorwhiteColor]];
ios7 、自定义导航栏左边按钮靠右的问题
if(([[[UIDevice currentDevice] systemVersion] floatValue]>=7.0?20:0))
{
UIBarButtonItem *negativeSpacer = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace
target:nil action:nil];
negativeSpacer.width = -20;//这个数值可以根据情况自由变化
self.navigationItem.leftBarButtonItems = @[negativeSpacer, leftBarButon];
}else
self.navigationItem.leftBarButtonItem = leftBarButon;