将按钮长期保持高亮


[_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];
    }
}

 

posted @ 2014-06-24 15:51  墨禾米说  阅读(299)  评论(0编辑  收藏  举报