iOS按钮设置
发表时间:2020-10-19
发布人:葵宇科技
浏览次数:31
设置按钮为弗成按:setEnable
[button setEnable:NO];
设置变灰:setAlpha
[button setAlpha:0.4];
设置按钮图像:setImage
[button showsBorderOnlyWhileMouseInside];
[button setImage:[UIImage imageNamed:@"choice"] forState:UIControlStateNormal];
设置按钮标题:setTitle
[button setTitle:@"按钮"];
断定按钮是否透明:isTransparent
[button isTransparent];
设置按钮是否透明:setTransparent
//透明
[button setTransparent:YES];
//不通明
[button setTransparent:NO];
断定边框是否显示边框:showsBorderOnlyWhileMouseInside
设置边框是否显示边框:setShowsBorderOnlyWhileMouseInside
[button setShowsBorderOnlyWhileMouseInside:YES];
//不显示
[button setShowsBorderOnlyWhileMouseInside:NO];
设置按钮的显示类型:setButtonType:
//显示
待续。。。