用代码快速创建UIButton和UILabel
来源:互联网 发布:ubuntu下安装qq 编辑:程序博客网 时间:2024/06/05 09:21
-(void)setButtonMessage:(UIButton *)btnName andNormalImageName:(NSString *)normalName andHeighImageName:(NSString *)heighName andFrame:(CGRect)frame andTag:(int)tag andaddSubView:(UIButton *)subview
{
UIImage *norImage = [UIImageimageNamed:normalName];
UIImage *heighImage = [UIImageimageNamed:heighName];
[btnName setBackgroundImage:norImageforState:UIControlStateNormal];
[btnName setBackgroundImage:heighImageforState:UIControlStateHighlighted];
btnName.frame = frame;
btnName.tag = tag;
[self.viewaddSubview:subview];
}
-(void)setLabelMessage:(UILabel *)lblName andText:(NSString *)text andFrame:(CGRect)frame andaddSubView:(UIButton *)subview
{
// [lblName setText:text];
lblName.text = text;
lblName.frame = frame;
[self.viewaddSubview:subview];
}
- 用代码快速创建UIButton和UILabel
- IOS UI 代码创建UIButton,UITextField,UILabel
- Swift UIButton 和 UILabel 的详细解释和创建使用
- 【UILabel和UIButton】
- UILabel 、UIbutton 、 UITextField 代码总结
- UILabel和UIButton的属性
- UIButton和UILabel添加下划线
- UILabel和UIButton添加下划线
- iOS学习笔记 4 —— 代码创建界面UIView、UILabel、UITextField、UIButton
- IOS 代码总结 UIImage UILabel UIButton
- IOS -- UIButton 代码创建
- IOS UIButton 代码创建
- UILabel、UIButton
- UIButton&UILabel
- UILabel UIButton
- UILabel,UITextField和UIButton使用简示
- UI笔记:UILabel、UIButton和UITextField
- UIButton和UILabel设置圆角
- 对比scanf()、getchar()和gets()
- poj 1703 Find them, Catch them 带权并查集
- win7设置自动关机
- UE4:ICU data directory was not discovered
- request.getHeader("referer")的作用
- 用代码快速创建UIButton和UILabel
- 懒得优化了,字符串截取和重复字符串计数
- Octave Tutorial-Vectorization ----Coursera ML笔记
- hoj1556 Color the ball
- Theme
- 二维码的生成细节和原理
- 树形dp--hdu4123
- POJ 1836 Alignment 变形的LIS
- ccf csp 201312-4有趣的数