开发者

Is it possible to prevent iphone view from receive touch events? If yes, How?

开发者 https://www.devze.com 2023-01-20 22:45 出处:网络
Is it possible to prevent iphone view from receive touch events? If yes, 开发者_如何转开发How?Try:

Is it possible to prevent iphone view from receive touch events? If yes, 开发者_如何转开发How?


Try:

yourView.userInteractionEnabled = NO;


You can also try calling

[[UIApplication sharedApplication] beginIgnoringInteractionEvents];

to tell your application to ignore touch-related events and

[[UIApplication sharedApplication] endIgnoringInteractionEvents];

to stop ignoring touch-related events.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号