iOS把一个简单的图形变成一个圆

   push是定义的一个button

    push.layer.masksToBounds = YES;

    push.layer.cornerRadius = 100;

    push.layer.borderWidth = 10;

    push.layer.borderColor = [[UIColor blackColor] CGColor];

posted @ 2014-11-05 13:27  yuanview  阅读(413)  评论(0)    收藏  举报