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: Bar Kazitaur
Country: Timor Leste
Language: English (Spanish)
Genre: Science
Published (Last): 25 November 2016
Pages: 431
PDF File Size: 13.75 Mb
ePub File Size: 14.46 Mb
ISBN: 282-7-28338-393-9
Downloads: 30197
Price: Free* [*Free Regsitration Required]
Uploader: Gakus

All replies Drop Down menu. Stack Overflow works best with JavaScript enabled. Facebook Email Reddit Twitter. This entry was posted in iPhone.

Post was not sent – check your cztiledlayer addresses! It’s been a month since you asked but this may still be of use. So you should only need to slightly modify your Graph class so it can act as a CATiledLayer delegate.

I’ve logged my screen geometry stats here: To start the conversation again, simply ask a new question.

The debugger doesn’t break or report any bad access or other exception; it’s completely silent about the hang. Stepping through with the debugger, I see that this thread exits before the hang happens.

Recode the sizeContent method in zoomdemoViewController. My suspicion is something is catiledllayer wrong in one of the threads owned by CATiledLayer; I don’t get any subsequent calls to drawLayer: When I zoomed in, the image was very blurry. Aside from being slightly confusing, this makes the process of resizing the world — which might make sense for certain applications — potentially more uiscrollvlew.


Sep 23, 2: But I did not see any difference between your first code sample and the second one. Begin by opening up zoomdemoViewController. I think the idea behind a CATiledLayer seems to be that you add it to a view: Ask a question Reset.

Vote stealing, or just clunky machines? My content view has a scaled of 0. Sign up using Email and Password. David Golightly David Golightly. Catiedlayer help will be greatly appreciated. Cocoa and layers and sublayers vs. Proudly powered by WordPress. It was being drawn at the same pixel resolution used when zoomed out: Second, I need to trigger a redraw of the image when the zoom level changes. But after reading and googling a lot, I still find it difficult to understand the basics of CATiledLayer for this task-I’m somehow lost between Quartz vs.

Sep 23, 5: I just started using CATiledLayer tonight.

CATiledLayer in a UIScrollView (for nativ… – Apple Community

The zoom limits are fixed, but should be dynamic. NO]; Ok, so far so good. The big change to TiledView has to do with tile index calculation.

Also, there are some weird drawing issues with very large contentSize values. What might cause this? 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.

  CAPM 39-2 PDF

To find out more, including how to control cookies, see here: Now I discovered that the phone wouldn’t render the UIView if it’s width is larger than pixels. To return to a point mentioned above: Mac OS X Sep 29, Panning outside of this region is an exercise left to the reader.

Things that were not immediately obvious to me. That’s basically all there is to it, you can just draw as if catiled,ayer entire coordinate space is just there. Post as a guest Name. This arrangement will tend to produce a usicrollview, more efficient image than would be obtained by simply applying a raw scaling transform to the full-resolution tiles.

CATiledLayer (Part 2)

User profile for user: For my sample graphic, I grabbed the Quartz sample code from another Apple sample, just to have something to draw. NO to make the content offset change immediate, or your map won’t end up where you’d expect it to: Thank you very much in advance for any reply.

Determines the maximum scale factor that can be applied to the viewport s. By clicking “Post Your Answer”, you ctailedlayer that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.