cell右箭头
2017-12-19 本文已影响0人
huangyan全球
//自定义了cell
//需要一个又侧箭头图片
UIImage *imageGray=[UIImage imageNamed:@"d"];
UIImageView* accessoryViewGray=[[UIImageView alloc] initWithImage:imageGray];
CGFloat imageHeight=7;
accessoryViewGray.frame=CGRectMake(0, 0, imageHeight, imageHeight*imageGray.size.height/imageGray.size.width);
// UIImage *imageBlue=[UIImage imageNamed:@"accessoryBlue"];
// UIImageView* accessoryViewBlue=[[UIImageView alloc] initWithImage:imageBlue];
// accessoryViewBlue.frame=CGRectMake(0, 0, imageHeight, imageHeight*imageBlue.size.height/imageBlue.size.width);
self.accessoryView=accessoryViewGray;