星五博客

uibutton添加边角提示

UILabel *label = [[UILabelalloc]initWithFrame:
			CGRectMake(cell.cellButton1.bounds.origin.x+55,
				cell.cellButton1.bounds.origin.y-2,15,15)];
            label.text= [NSStringstringWithFormat:@"%d",99];
            label.backgroundColor=[UIColorredColor];
            label.textColor= [UIColorwhiteColor];
            label.textAlignment= NSTextAlignmentCenter;
            label.font=[UIFontfontWithName:@"Arial"size:11];
            label.layer.cornerRadius = 7.9;
            label.layer.masksToBounds = YES;
            [cell.cellButton1addSubview:label];



IOS