-1
當我們點擊視圖時如何解除tableview?我使用touch開始method.but它不工作?當觸及tableview.How如何解除tableView?
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"touches began");
UITouch *touch = [touches anyObject];
if(touch.view!=myTableView){
myTableview.hidden = YES;
}
}
如何禁用表,當我們點擊view.i我有三個tableviews?
它的工作如果有幫助你請投了 謝謝:) –