MoreNotepad++

--------活出自己的精彩。

导航

获取UIButton的背景图片

- (UIImage *)imageForState:(UIControlState)state;
- (UIImage *)backgroundImageForState:(UIControlState)state;

// 示例
[sender imageForState:UIControlStateNormal];

 

posted on 2014-01-23 15:19  MoreNotepad++  阅读(191)  评论(0)    收藏  举报