开发者

Iphone: Combining PageControl and TextView scroll problem help

开发者 https://www.devze.com 2022-12-12 07:46 出处:网络
I used the PageControl sample app from apple to build an app. I am putting on each page a vertically-scrollable TextView that I made using IB and I can -on the simlulator- scroll the pages and scroll

I used the PageControl sample app from apple to build an app. I am putting on each page a vertically-scrollable TextView that I made using IB and I can -on the simlulator- scroll the pages and scroll vertically the text in each page.

On the device I cannot do that. It seems like the TextView is in front and I can't scroll to the pages on the sides. If I touch a little corner where there is no t开发者_运维知识库extview then I can scroll to the next page.

How can I make it this work on the device too?


You could be seeing the imprecision of finger touches on the device that you don't see with the mouse on the simulator. On the simulator, you can reliably hit targets just a few pixels wide. On the device you cannot.

To test, I would shrink the Textview down to a size where there is little possibility you can hit it accidentally.

0

精彩评论

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