CATILEDLAYER UISCROLLVIEW PDF

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: Danos Fenrizilkree
Country: El Salvador
Language: English (Spanish)
Genre: Environment
Published (Last): 7 December 2009
Pages: 250
PDF File Size: 6.74 Mb
ePub File Size: 5.18 Mb
ISBN: 926-5-21793-624-4
Downloads: 92473
Price: Free* [*Free Regsitration Required]
Uploader: Tygot

I recommend keeping contentSize and CATiledLayer size under px x px, maintaining the offset of this rect from the absolute map size for the zoom level in an instance property.

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. When I do that, the view appears with scale factor 1.

Begin by opening up zoomdemoViewController. It was being drawn at the same pixel resolution used when zoomed out:.

CATiledLayer (Part 2)

NO to make the content offset change immediate, or your map won’t end up where you’d expect it to: I think the idea behind a CATiledLayer seems to be that you add it to a view: For my sample graphic, I grabbed the Quartz sample code catiledlaye another Apple sample, just to have something to draw. And more generally, uuiscrollview this approach even make sense? Any help will be greatly appreciated.

  AYAX SOFOCLES LIBRO PDF

I can explain if needed, but look around on Google Groups and you’ll find the appropriate thread.

Post was not sent – check your email addresses! 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. I can get a map to show up geographically located where I expected it to be.

iphone – UIScrollView and CATiledLayer from the ground up – Stack Overflow

Posted on Sep 23, 1: Email Required, but never shown. I am trying to do exactly the same thing and are having similar hassles to what you are My content view has a scaled of 0. Sep 23, 3: I think the idea behind a CATiledLayer seems to be that you add it to a view:. For instance, if you were applying a scale factor of 0. Scott’s Space Wars emulator. So I’m building my own native iPhone map. By continuing to use this website, you agree to their use.

Sep 29, The built-in zoom support in CATiledLayer integrates well i. Sign up using Facebook. To find out more, including how to control cookies, see here: When I zoomed in, the image was very blurry. Catiiledlayer that were not immediately obvious to me. I was missing a couple of key points. This entry was posted in iPhone. It should return discrete values based uiscrolllview powers of 2, and catileclayer be continuous as it is in the demo.

  DIBAWAH BENDERA REVOLUSI JILID 2 PDF

Not all the tiles seem to load even though I can see requests are being made for thembut I’ll worry about that later. Message was edited by: It’s been a month since you asked but this may still be of use. Thank you very much in advance for any reply. So you should only need to slightly modify your Graph class so it can act as a CATiledLayer delegate. Sep 23, 5: Second, I need to trigger a redraw of the image when the zoom level changes.

NO]; Ok, so far so good. Vote stealing, or just clunky machines? Sorry, your blog cannot share posts by email.

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Ideally I would like to keep the Graph class untouched, just draw the context entirely, uiscrollvieew it into tiles and scroll those. I have no trouble getting the CATiledLayer to pull in the correct tiles; my problem is in figuring out the interaction between views and layers.