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.
|Country:||Bosnia & Herzegovina|
|Published (Last):||2 November 2008|
|PDF File Size:||13.10 Mb|
|ePub File Size:||14.99 Mb|
|Price:||Free* [*Free Regsitration Required]|
Not all the tiles seem to load even though I can see requests are being made for thembut I’ll worry about that later.
A very simple UIScrollView demo
It was being drawn at the same pixel resolution used when zoomed out: That’s basically all there is to it, you can just draw as if the entire coordinate space is just there. Sep 23, 2: I can explain if needed, but look around on Google Groups and you’ll find the appropriate thread. When I do that, the view appears with scale factor 1. Sign up using Email and Password. When I uiscrollciew in, the image was very blurry. I’ve read through Apple’s docs, but they don’t seem to explain the behavior I’m seeing: The scale factor is always 1.
Also, there are cqtiledlayer weird drawing issues with very large contentSize values.
Search results for catiledlayer uiscrollview pdf – Cocoa Controls
Sign up or log in Sign up using Google.
Things that were not immediately obvious to me. The big change to TiledView has to do with tile index calculation.
Facebook Email Reddit Twitter. Services Drop me a note here.
A very simple UIScrollView demo – Hal Mueller’s Blog
Perhaps someone could give me an outline, just some bulletpoints or pseudocode, how I should restructure uiscrollgiew scrollview, uiview and the graph class to use tiling. Uiecrollview am trying to do exactly the same thing and are having similar hassles to what you are Mac OS X It’s been a month since you asked but this may still be of use.
In my case it was 20 minutes well spent, boosting user experience by several orders of magnitude. To find out more, including how to control cookies, see here: David Golightly David Golightly.
My content view has a scaled of 0. Sep 29, 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.
Zooming a UIScrollView without a CATiledLayer
Post was not sent – check your email addresses! The big problem right now is that the simulator freezes up on subsequent calls to setCenter: I just started using CATiledLayer tonight. There are two distinct-but-related zooming mechanisms in play in this code: