Questions tagged [catiledlayer]

A tiled layer is a Core Animation layer which divides its drawing area into equal, rectangular areas which are drawn separately. It can be used to display very large contents in a space-saving way in a scrollview. It also allows different levels of detail depending on the current zoom level.

CATiledLayer is a subclass of providing a way to asynchronously provide tiles of the layer's content, potentially cached at multiple levels of detail.

As more data is required by the renderer, the layer's drawLayer:inContext: method is called on one or more background threads to supply the drawing operations to fill in one tile of data. The clip bounds and current transformation matrix of the drawing context can be used to determine the bounds and resolution of the tile being requested.

163 questions
0
votes
1 answer

Best practices to load very large images in a scroll view for zooming?

I'm loading a very large image (8000x8000) into an UIImageView that's in a UIScrollView. This works but it consumes a lot of memory and takes a couple of seconds to load. I've looked into a better approach and all the examples I have found are based…
Berry Blue
  • 15,330
  • 18
  • 62
  • 113
0
votes
1 answer

iphone CATiledLayer not recognized as class?

Im following the apple ZoomingPDFViewer example, I have the frameworks just as in the example, but when I write in xcode the class CATiledLayer doesnt get recognized in the edit area (no coming purple as a class, like in the example, and comand…
manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
0
votes
1 answer

SQLite3 query in UIView draw(_:) not working with CATiledLayer

While it is possible to read data inside UIView draw(_:), it is not when the UIView layer is set to be CATiledLayer. The code is below (giving "Thread 4: EXC_BAD_ACCESS (code=1, address=0x7fcc95b1d170)" when the CATiledLayer is used): class Test2:…
ckc
  • 345
  • 4
  • 12
0
votes
1 answer

Detect touches within UIScrollView and CATilerLayer

How can i detect the touch (x,y) of my pdf rendered in the ScrollView. To be clear: I want the x,y of the pdf not of the screen. Hope someone knows this... Thanks.
meersmans
  • 463
  • 5
  • 14
0
votes
1 answer

How to optimize drawing of a UIView that contains subviews with CATiledLayer layers

I have a UIView within a UIScrollView that contains many UIView subviews. Each of these subviews has a CATiledLayer layer. In addition, I have a magnifying loupe functionality that draws the container UIView within its context (along with all the…
canfan
  • 211
  • 1
  • 3
  • 11
0
votes
1 answer

Combination of UIScrollView - CATiledLayer - PDF and Quartz drawing

I want do draw lines, rectangles, ... on a full zoomable pdf (so without quality loss) in an iphone/ipad project. First: I have based me on this sample: http://www.olivetoast.com/blog/2009/08/simple-uiscrollview-catiledlayer-pdf-example/ This sample…
meersmans
  • 463
  • 5
  • 14
0
votes
1 answer

How to determine the correct UIScrollView zoomScale with a CATiledLayer

I created a UIScrollView with a CATiledLayer for a 10000x8078 image. Would I place this image in a UIView the zoomScale is always updated according to the contentSize (respectively the size of the image). With CATiledLayer the contentSize now…
user306766
0
votes
2 answers

How to handle downloaded Images with CATiledLayer

Happy New Year, I am writing an app where the user searches for high res images online and then downloads these large images. I need to show these in a UIScrollView. On the Apple dev site I found the WWDC 2010 Session 104 on UIScrollViews that…
user306766
0
votes
0 answers

Specify custom zoom levels manually in CATiledLayer?

I have been trying for days to create CATiledLayer with custom zoom levels, similar to what TileView does in android. Here's the code used in android TileView: addDetailLevel(zoomScale,Dimension,imageUrl/col_row) I've created a fully functioning…
Frankenstein
  • 15,732
  • 4
  • 22
  • 47
0
votes
1 answer

Can't set CATiledLayer.FadeDuration in MonoTouch

I'm trying to remove fading animation from CATiledLayer. Setting CATiledLayer.FadeDuration static property doesn't work and is not supposed to, according to this closed bug report: https://bugzilla.novell.com/show_bug.cgi?id=648993 The suggested…
Alex Shirshov
  • 635
  • 3
  • 8
0
votes
1 answer

Cannot animate view with CATiledLayer correctly

Can UIViews with a CATiledLayer have animations? If I call the following: [myContentView setNeedsDisplay]; CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationTransition:…
Aron Nelson
  • 838
  • 1
  • 9
  • 17
0
votes
1 answer

Convert print, CMYK images to tiled, RGB images for iPhone?

I was given some high-res images, which were originally made for a printed magazine, to show in an iPhone app, like the Xcode PhotoScroller app (like iPhone's native Photo viewer app). I'm down-sizing them to 1024 x 1536 px and I'm going to be…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
0
votes
1 answer

Correct way of adding contents to pdf on zooming ios

I am working in an app which displays map in pdf. In that I am having the basic map pdf (pdf1) on top of which I need to show another pdf (pdf2) layer which is having cities name. I am able to do so by adding another CATiledLayer object on the view…
PriyaJain
  • 99
  • 1
  • 2
  • 6
0
votes
1 answer

Monotouch and catiledlayer

One of my old question had to do with viewing pdf files in monotouch ( I managed to accomplish this). Port of the iOS pdf viewer for xamarin My issue is as following: if I start to close and open a pdf view( view with catiledlayer) really fast and…
0
votes
1 answer

Convert CGPoint between iPhone & CA planes

I have a UIView subclass that I'm drawing a PDF onto (using a CATiledLayer). I also need to draw on a specific region of that PDF, however the coordinate plane of the CATiledLayer when using CG to draw is way screwy. See image: I have a point…