在載入地方加上這段
[helpview setUserInteractionEnabled:YES];
[helpview addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickCategory:)]];
事件-(void)clickCategory:(UITapGestureRecognizer *)gestureRecognizer
{
helpview.hidden=true;
}
參考:
2014, 冰冻鱼
http://www.pocketdigi.com/20140218/1276.html
全站熱搜
留言列表