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.

Author: Gale Nelmaran
Country: Croatia
Language: English (Spanish)
Genre: Literature
Published (Last): 5 May 2013
Pages: 363
PDF File Size: 14.97 Mb
ePub File Size: 12.60 Mb
ISBN: 683-8-23659-975-2
Downloads: 60701
Price: Free* [*Free Regsitration Required]
Uploader: Grogor

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.

Stack Overflow works best with JavaScript enabled.

A very simple UIScrollView demo – Hal Mueller’s Blog

Facebook Email Reddit Twitter. Thank you very much in advance for any reply. Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your catiledlajer use of the website is subject to these policies. I think the idea behind a CATiledLayer seems to be that you add it to a view: And the view is completely redrawn each time a small subrectangle is requested, which defeats the purpose of the tiling, at least as far as speed goes.


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