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

Resizing CATiledLayer's Using Scale Transforms vs. Bounds Manipulation

I've got my layer hosted workspace working so that using CATiledLayers for hundreds of images works nicely when the workspace is zoomed out substantially. All the images use lower resolution representations, and my application is much more…
Dalmazio
  • 1,835
  • 2
  • 23
  • 40
0
votes
1 answer

improving performance of a CATiledView

I have been looking for a way to improve the performance of my CATiledView. The view takes up nearly the entire screen (i have an iPad and iPhone version).Currently it takes about 12 seconds for the tiles to fill in completely (12 seconds on both…
Brodie
  • 3,526
  • 8
  • 42
  • 61
0
votes
3 answers

CATiledLayer large image crashing app

This somewhat related to another post - but that one got kinda messed up - so I start from scratch: I have a CATiledLayer with a HUGE image in it (5780x6700px). The tiled layer is in a scrollview. When I start to scroll around, everything's fine up…
Urs
  • 81
  • 2
  • 8
0
votes
1 answer

CATiled Layer Question~

Was wondering how to apply the CATiled Layer to a webView rather than a scrollView. Went through a lot of books as well as searches and found absolutely nothing regarding how to successfully apply a CATiled Layer to a webView. The basic…
Zee
  • 1
  • 1
0
votes
1 answer

How to get a screenshot of a CATiledLayer based TilingView

I'm trying in my app to take a screenshot of the current screen contents, where my TilingView (based on CATiledLayers) displays a number of transparent large tiled images. Also I added some subViews to the TilingView, which are magically captured in…
iOS-Coder
  • 1,221
  • 1
  • 16
  • 28
0
votes
1 answer

Why isn't my ScrollView/CATiledView zooming properly?

I have a UIScrollView backed by a CATiledLayer. The layer is pulling tiles from a server and displaying them in response to what is requested when drawLayer:inContext is called. Here's what it looks like: -(void)drawLayer:(CALayer *)layer…
paxswill
  • 1,200
  • 9
  • 13
0
votes
1 answer

How to have CATiledLayer not block the main thread

I am implementing a CATiledLayer into a UIScrollView. In the CATiledLayer, I have a function to draw the layers like so: - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx { CGContextTranslateCTM(ctx, 0.0f, 0.0f); …
rickharrison
  • 4,867
  • 4
  • 35
  • 40
0
votes
1 answer

Inconsistent "Zoom level" for CA-tiled layer class

So I am using CATiled layer to create my own floor plan. My floor plan works just fine on older devices like the 4, 4s, 5, 5s and 6. However, when I run my program on the 6 plus, my arithmetic for zoom level is off. Here's why: When I call my draw…
imnilly
  • 317
  • 2
  • 4
  • 10
0
votes
1 answer

iPhone: CATiledLayer/UIScrollView wont scroll after zooming and only zooms to anchor point

Here is the problem... I am using CA Tiled Layer to display a large jpg. The view loads okay, and when I go to scroll around, it works fine. However, as soon as I zoom in or out once, it scrolls to the top left (to the anchor point) and will not…
Brodie
  • 3,526
  • 8
  • 42
  • 61
0
votes
1 answer

Mapbox: tile source with every second zoom level

I am using Mapbox-iOS-SDK with an MBTiles file containing every second zoom level to reduce its file size. The problem is that, whilst zooming in, Mapbox removes the previous zoom level tiles before loading the next level. If this level is not…
Onato
  • 9,916
  • 5
  • 46
  • 54
0
votes
1 answer

CATiledLayer and thread safety

I am testing out using CATiledLayer to draw images and it seems much faster (oddly) than using the default layer even though more drawing operations take place In drawRect I have: CGContextRef context = UIGraphicsGetCurrentContext ()…
user3344003
  • 20,574
  • 3
  • 26
  • 62
0
votes
2 answers

Single threaded CATiledLayer (alternative?)

CATiledLayer calls drawRect from multiple threads - this means that my model needs to be thread safe. It isn't - and making it thread safe would be 'tedious' to say the least (and threading is evil anyway :-) Anyone know of a way to make…
Scotty
  • 2,019
  • 1
  • 20
  • 31
0
votes
1 answer

UIScrollView zooms subviews when increasing subview dimensions

I have a UIScrollView that contains a view derived from UIView that uses CATiledLayer. Essentially, in my ViewController viewDidLoad: _tiledView = [[TiledView alloc] initWithFrame:rect tileSize:_tileSize]; _scrollView = [[ScrollingView alloc]…
Luis Artola
  • 771
  • 6
  • 20
0
votes
0 answers

CATiledLayer and not rendered slices

The problem: I've to render a big image 7148x15000px (a custom map), so i've looking around for something usefull and i've found BitmapSlice, but the problem is that the very first time i run the app (on device and simulator) several slices aren't…
Lucabro
  • 525
  • 3
  • 9
  • 30
0
votes
1 answer

CATiled Layer Async image downloading

I am customizing photo scroller xcode source. for the tiled images i want to download images from a web server using nsoperation in the background. the app downloads the tiles images properly, but doesn't get refreshed. not sure, how to refresh the…
1 2 3
10
11