Categories : Travel

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: Mezishicage Mikalkree
Country: Rwanda
Language: English (Spanish)
Genre: Art
Published (Last): 23 May 2018
Pages: 185
PDF File Size: 6.3 Mb
ePub File Size: 15.57 Mb
ISBN: 658-1-95862-904-3
Downloads: 87953
Price: Free* [*Free Regsitration Required]
Uploader: Daijind

Stack Overflow works best with JavaScript enabled. The big change to TiledView has to do with tile index calculation.

Stepping through with the debugger, I see that this thread exits before the hang happens. NO to make the content offset change immediate, or your map won’t end up where you’d expect it to: When I do that, the view appears with scale factor 1. My suspicion is something is going wrong in one of the threads owned by CATiledLayer; I don’t get any subsequent calls to drawLayer: David Golightly David Golightly. For my sample graphic, I uiscrolview the Quartz sample code from another Apple sample, just to have something to draw.

Sorry, your blog cannot share posts by email.

A very simple UIScrollView demo

But I did not see uixcrollview difference between your first code sample and the second one. 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 continued use of the website is subject to these policies.


Home About this Blog. The changes are pretty straightforward. Finally, performance — at least in catkledlayer iPhone4 simulator — is a little scary.

Recode the sizeContent method in zoomdemoViewController. 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. Sign up using Facebook. It was being drawn at the same pixel resolution used when zoomed out:.

And, just to keep things clear, you should probably update the comment at the top of this method, as well:. I can explain if needed, but uiscroplview around on Google Groups and you’ll find the appropriate thread. Cocoa and layers and sublayers vs.

Sign up or log uidcrollview Sign up using Google. What might cause this? Thank you very much in advance for uiscrol,view reply. Scott’s Space Wars emulator.

The big problem right now is that the simulator freezes up on subsequent calls to setCenter: Note that that code is still not great. Sep 29, 4: Any help will be greatly appreciated. That’s basically all there is to it, you can just draw as if the entire coordinate space is just there. I think the idea behind a CATiledLayer seems to be that you add it to a view: If so, how should I continue? Ideally I would like to keep ulscrollview Graph class untouched, just draw the context entirely, split it into tiles and scroll those.


Oct 18, 4: Services Drop me a note here. To return to a point mentioned above: Vote stealing, or just clunky machines?

Panning outside of this region is an exercise left to the reader. Post as a guest Name.

Sign up using Email and Password. Sep 23, 3: Perhaps someone could give me an outline, just some bulletpoints or pseudocode, how I should restructure the scrollview, uiview and the graph class to use tiling. Determines the maximum scale factor that can be applied to the viewport s. Email Required, but never shown.

Search results for catiledlayer uiscrollview pdf – Cocoa Controls

So you should only need to slightly modify your Graph class so it can act as a CATiledLayer delegate. Sep 29, Message was edited by: Ask a question Reset. Sep 23, 5: But after reading and googling a lot, I still uisxrollview it difficult to understand the basics of CATiledLayer for this task-I’m somehow lost between Quartz vs.