给view button 设置圆角

    UIview * view= [[UIViewalloc] init];

    view.layer.masksToBounds =YES;

    view.layer.cornerRadius = 6.0;

你可能感兴趣的:(button,设置圆角,给view)