bu

来源:互联网 发布:儿童网络安全教育 编辑:程序博客网 时间:2024/04/28 08:50
//设置button标题 [button1 setTitle:@"点击" forState:UIControlStateNormal]; / forState: 这个参数的作用是定义按钮的文字或图片在何种状态下才会显现*/ //以下是几种状态 // enum { // UIControlStateNormal = 0, 常规状态显现 // UIControlStateHighlighted = 1 << 0, 高亮状态显现 // UIControlStateDisabled = 1 << 1, 禁用的状态才会显现 // UIControlStateSelect
0 0