标签:
UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapOnce)];//定义一个手势 [tap setNumberOfTouchesRequired:1];//触击次数这里设为1 [editShopTableView addGestureRecognizer:tap];//添加手势到View中 -(void)tapOnce//手势方法 { [textFieldShopName resignFirstResponder]; [textFieldWeChatID resignFirstResponder]; }
标签:
原文地址:http://www.cnblogs.com/madeininfi/p/3871302.html