– (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
CGPoint point = [[touches anyObject] locationInView:self];
UIView* chatView = [self viewWithTag:1009];
point = [chatView.layer convertPoint:point fromLayer:self.layer]; //get layer using containsPoint:
if( [chatView.layer containsPoint:point]){
[NSNotificationCenter.defaultCenter postNotificationName:@”bh_up_event” object:nil];
}
}
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/164186.html原文链接:https://javaforall.cn