码迷,mamicode.com
首页 > 其他好文 > 详细

将按钮长期保持高亮

时间:2014-06-25 16:37:09      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:style   class   blog   code   tar   color   


[_handoutButton setImage: [UIImage imageNamed:IMG_PUBLIC_VideoView_Handout] forState:UIControlStateNormal]; [_handoutButton setImage: [UIImage imageNamed:IMG_PUBLIC_VideoView_Handout_Cancel] forState:UIControlStateSelected];
[_handoutButton addTarget:self action:@selector(handoutButtonAction) forControlEvents:UIControlEventTouchUpInside];
 

 

//讲义开关按钮
- (void)handoutButtonAction{
    
    if (self.isOpenHandout) {
        self.isOpenHandout = NO;
        [_handoutButton setSelected:NO];
    }else{
        self.isOpenHandout = YES;
        [_handoutButton setSelected:YES];
    }
}

 

将按钮长期保持高亮,布布扣,bubuko.com

将按钮长期保持高亮

标签:style   class   blog   code   tar   color   

原文地址:http://www.cnblogs.com/mohe/p/3806255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!