I have created myself popup menu(draw an uiview and list some items). But I hope when touch any place outside the uiview, the popup menu will disappear.
我试图使用
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
//UITouch* touch = [touches anyObject];
}
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
}
要赶上感触活动,但认为有时不会启动上述职能。
欢迎任何意见
增 编
联合国