Closed appleios closed 9 years ago
Do you think we need this feature in example app?
anyway I think the solution must be like:
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
if (<touch's location in cell's view intersect button's frame>){
return NO;
}
return YES;
}
check my solution on similar situation http://stackoverflow.com/questions/23847801/how-to-handle-a-tapping-on-non-cell-area-of-uitableview/23849671#23849671
its used very often in storyboard based apps, and if each client should do
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
if (<touch's location in cell's view intersect button's frame>){
return NO;
}
return YES;
}
i think its a bad way. I'm sure that changing the TextInputView's super to UITextField or UITextView and doing
- (BOOL)becomeFirstResponder
{
[super becomeFirstResponder];
return [[self.tagsListView textField] becomeFirstResponder];
}
-(BOOL)resignFirstResponder
{
BOOL y = [[self.tagsListView textField] resignFirstResponder];
[super resignFirstResponder];
return y;
}
will fix this issue.
and implementation
BUG: I can not delete selected tags any more