设置button为圆形


通过layler

   // 创建头像视图

    UIButton *logoButton = [[UIButton alloc] init];
    logoButton.frame = CGRectMake(5050100100);
    logoButton.layer.cornerRadius = 50;
    logoButton.backgroundColor = [UIColor redColor];
    [self.view addSubview:logoButton];

 

 以后完善 

 

posted @ 2015-06-26 09:29  aprogrammer  阅读(777)  评论(0编辑  收藏  举报