开发者

Can't Touch to right part of the screen when rotated to Landscape iPhone iPad

开发者 https://www.devze.com 2023-04-13 09:19 出处:网络
I have an app that supports all of o开发者_运维问答rientations. However when I rotate the device after it launches in portrait mode, I cannot touch to the right part of the screen of the iPad. I guess

I have an app that supports all of o开发者_运维问答rientations. However when I rotate the device after it launches in portrait mode, I cannot touch to the right part of the screen of the iPad. I guess it is a framing issue (I think I cannot touch to 1024-768px width part of the screen) Also when I try to set the frame of self.view to CGRectMake (0,0,1024,768) in didrotate method, self.view lays from almost the center to out of screen at the right.

How to solve this? Any help? Thanks.


You need not to set the frame of self.view,it will be setted automatically.If you set, it will be wrong.I had the same mistake before.


This is because I forgot to update the frame of a view which is above the view which I would like to touch. Issue is resolved with updating all of the views' frames carefully.

0

精彩评论

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