I was tinkering with UIScrollView a while back, just doing a simple demo to First , use a CATiledLayer as the layer class for my Starview. My current approach involves hosting a CATiledLayer (to fetch & render tiles in the current view frame) inside a UIScrollView (for event. The built-in zoom support in CATiledLayer integrates well (i.e., easily) with a UIScrollView, but it doesn’t quite work the way I’d like, and it’s not.
|Published (Last):||5 May 2013|
|PDF File Size:||14.97 Mb|
|ePub File Size:||12.60 Mb|
|Price:||Free* [*Free Regsitration Required]|
In my case it was 20 minutes well spent, boosting user experience by several orders of magnitude. Things seem to run ok in standard resolution on either simulated or actual hardware but high-res tiling can take a long time to fill up the screen. The changes are pretty straightforward. This arrangement will tend to produce a higher-quality, more efficient image than would be obtained by simply applying a raw scaling transform to the full-resolution tiles.
I’ve logged my screen geometry stats here: So I’m building my own native iPhone map.
That’s basically all there is to it, you can just draw as if the entire coordinate space is just there. Perhaps someone could give me an outline, just some catilevlayer or pseudocode, how I should restructure the scrollview, uiview and the graph class to use tiling. NO]; Ok, so far so good.
CATiledLayer (Part 2)
I just started using CATiledLayer tonight. Things that were not immediately obvious to me. I was missing a couple of key points. If so, how should I continue? Email Required, but never shown.
Uiscroollview entry was posted in iPhone.
My content view has a scaled of 0. So you should only need to hiscrollview modify your Graph class so it can act as a CATiledLayer delegate. Panning outside of this region is an exercise left to the reader. User profile for user: Post as a guest Name.
A very simple UIScrollView demo
You can download the demo at http: You can run the demo, and see the zooming goodness. Sep 23, 5: When I do that, the view appears with scale factor 1. The big change to TiledView has to do with tile index calculation.
A very simple UIScrollView demo – Hal Mueller’s Blog
Proudly powered by WordPress. I think the idea behind a CATiledLayer seems to be that you add it to a view:. Any help will be greatly appreciated. Services Drop me a note here. Reply Helpful Thread reply – more options Link to this Post.
Post was not sent – check your email addresses! catiiledlayer
Mac OS X