UIButton

1.定义

button.titleLabel.font = [UIFontsystemFontOfSize:25];

 

[button addTarget:selfaction:@selector(categoryAction:) forControlEvents:UIControlEventTouchUpInside];

 

//整个按钮铺满图

[button setBackgroundImage:[MHFileimageWithResourceName:@"bookmark_edit_pad.png"] forState:UIControlStateNormal];

//图多大就显示多大

[_reduceFontBtnsetImage:[MHFileimageWithResourceName:@"reduce_font_size_pad.png"] forState:UIControlStateNormal];

 

2。禁止多点触摸 将需要的按钮

[itemBtnsetExclusiveTouch:YES];

 
posted @ 2012-12-13 10:02  六界剑仙  阅读(118)  评论(0)    收藏  举报