简体   繁体   中英

How to do smooth scrolling in UIScrollView?

I am using Apple's page control sample and showing three different types of views.

The scrolling is very slow on the device because I am using a UITableView and 5-7 labels on my view. Everything is updating from a database. How do I increase the performance of my scrolling behavior?

Or you could make sure all components on your UITableViewCells are opaque. UITableView doesn't handle well transparency when scrolling.

As Nick noted, the link back to the original Tweetie article, but I found it in the Wayback Machine - here

In researching this issue for myself, I found two other articles that were useful:

Glassy Scrolling with UITableView

Fun Shadow Effects Using Custom CALayer Shadowpaths (this is actually what solved my problem - I was using drop shadows in my views)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM