tableView 那点事 及 导航栏字体颜色

来源:互联网 发布:php数组转化成json 编辑:程序博客网 时间:2024/05/17 23:22

#pragma mark ---  点击cell不变色  cell的点击事件

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

    [tableView deselectRowAtIndexPath:indexPath animated:NO];


}


//设置导航栏字体颜色

    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];



//cell的箭头设置

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;


//tabbar隐藏

self.hidesBootomWhenPushed  =  YES;


//占位图

[imgV setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",strurl2,_model.picUrlArr2[i]]] placeholderImage:[UIImage imageNamed:@“LEGO.png"]];



 [cell.goodsImageview setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",KServer,model.biimg]] placeholderImage:[UIImage imageNamed:@“u4"]];


0 0
原创粉丝点击