Tiling, applying it in my app.
Tiling, applying it in my app.
- Subject: Tiling, applying it in my app.
- From: Gustavo Pizano <email@hidden>
- Date: Fri, 21 Jan 2011 23:04:21 +0100
Hello all.
I have seen the WWDC video a,d im checking the source code about Tiling & zooming in a UIScrollView.
Now, my app differs a little in it's content as from the view but as in the video was stated the technique is portable for proper zoom in a scrollview.
I have a UIScrollview, the scrollview's content's view (GridView) in its draw method has a series of CG calls to draw some paths inside it. This Subview is the one I have with a CATiledLayer.
Now, at startup I set up many UIImageView with an image 40X40 px, size, and add it to the GridView, So when I zoom in ... I still see sharp the lines I draw using CG, but of course the UIImages I put previously gets blurred..
What should I do in order to have as a resutl of zooming these images still be sharp?...
So here are my only thought...
Get a bigger image and when zooming getting the image with the correct scale.
I also don't understand much about what they do in the example all those maths and things to get the correct tile and dequeee it.. and so on.. I mean I understand they don't create more tiles than needed, and just start reusing whatever is not used... in my case how can I apply this?
Thx
Gustavo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden