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  阅读(404)  评论(0编辑  收藏  举报