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
1
vote
2 answers

CATiledLayer basics: Why is CATiledLayer's drawLayer:inContext: called so often when rendering PDFs?

I'm trying to understand how CATiledLayer works when rendering a PDF page using CGContextDrawPDFPage(). My understanding was that drawLayer:inContext: is called once per tile and level of detail. Is that correct? In the delegate of my tiled layer I…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
0
votes
1 answer

CATiledLayer blinks after zoom

I have UIScrollView with BIG subview with lots small CATiledLayers displaying images. With zoomDidEnd I set new scale: [tilesContainer setContentScaleFactor:scale]; cause redraw tilesContainer view with all it's layers…
Gusev Andrey
  • 446
  • 5
  • 23
0
votes
2 answers

Present and zoom large images on iOS without CATiledLayer

I'd like to present and allow the user to zoom large images on the iPhone and iPad in much the same way that the Photos app works. I realize CATiledLayer is the goto class for this, but the aesthetic it uses won't work for my application. It renders…
Hilton Campbell
  • 6,065
  • 3
  • 47
  • 79
0
votes
1 answer

Programmatically tiling images for PhotoScroller

I have an app that is downloading huge pictures from an S3 bucket. Once I have them downloaded, I tile them with the following code. - (void)saveTilesOfSize:(CGSize)size forImage:(UIImage*)image …
Stateful
  • 737
  • 2
  • 9
  • 25
0
votes
1 answer

crash bug because of using CATiledLayer and Core Data on iOS5

I am using CATiledLayer to render NSManagedObjects. But you know, CATiledLayer render objects in background threads. This make my app crash on iOS5 I know that I should use separated NSManagedContext for each of threads but this way make performance…
Xung Le
  • 21
  • 1
  • 3
0
votes
1 answer

CATiledLayer: Configure scale for next level of detail

CATiledLayer create for showing images with tiles. So if tileSize is more then current place for it, CATiledLayer show next level of detail. How can i control this process and get behavior as in MKTiledLayer? UPDATE Problem are that …
DAloG
  • 137
  • 1
  • 11
0
votes
1 answer

UIScrollView CATiledLayer Zooming Force repaint after chaning Content

I have a Problem with a UIScrollView CATiledLAyer stucture. What I'm doing is showing pdf Pages in a Zommable Scrollview with CATiledLAyer. I created a PDF Search which highlights words on the pages. Now the Problem. How can I force the unzoomed…
Maffo
  • 1,445
  • 1
  • 14
  • 17
0
votes
1 answer

Add a UIImage on top of CATiledLayer

Is it possible to draw a UIImage on top of the CATiledLayer. The main idea is to note the position on the view. I have used PhotoScroller example from Apple Library and I am trying to add an UIImage on top of the tileRect. Any help will be…
lifemoveson
  • 1,661
  • 8
  • 28
  • 55
0
votes
1 answer

CATiledLayer in NSView flashes on changing contentsScale

I have a CATiledLayer inside a NSView which is a documentView property of NSScrollView. Storyboard setup is pretty straitforward: add NSScrollView to the default view controller and assign View class to the NSView of clipping view. The following…
Pavel Kozlov
  • 993
  • 6
  • 16
0
votes
1 answer

CATiledLayer redraw of underlying subview

I have two subclassed UIView as subviews of UIViewController's view. First UIView has CATiledLayer as a layer class. And it placed on background. Second UIView placed above first. I want to redraw UIView with CATiledLayer. I've tried to call…
0
votes
1 answer

Is there a way to asynchronously load parts of a large SVG shape?

I am trying to develop a website consisting of a geographic map using svg, with data derived from OpenStreetMap. Since it will be large and will be accepting transformations (zooming and moving), only a part of it will visible on the screen. So, for…
ckc
  • 345
  • 4
  • 12
0
votes
1 answer

Render very big UIscrollview UIImage + Video

I'm creating a particular features on my app, and I don't know how's the best way to do that. I have a UIScrollview big as the screen (1024*748). Inside this UIScrollView I insert a UIView. This view is very big (8000*748) and represent a table. On…
Pablosproject
  • 1,374
  • 3
  • 13
  • 33
0
votes
2 answers

Is there a better way for tiling Images in iphone

Currently, trying to download the images through URLs and tiling those images in the way of how PhotoScroller app has been done by Apple store. The largest image size is 4000 * 4000 and is in RGB format. I am tiling those images with tilesize 256 *…
lifemoveson
  • 1,661
  • 8
  • 28
  • 55
0
votes
1 answer

Can we Add a new layer over CATiledLayer?

I am displaying a big image in CATiledLAyer. Now i want to draw a line between two points where the user touches on that image. Would that be possible ?? , if so can you outline me the way to accomplish it ?? Thanks, Ratna
SRP-Achiever
  • 435
  • 4
  • 9
0
votes
1 answer

how to handle tiling of images on the fly

I am writing an app which would tile the images 256 * 256 and write those tile files back in the directory. I am updating my URL each time if there are any updates and tile those images back and store in the iphone folder. I am worried about two…
lifemoveson
  • 1,661
  • 8
  • 28
  • 55