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

Pinch-To-Zoom feature for TiledScrollView

I used https://github.com/ened/Android-Tiling-ScrollView library to display large tiled image. Everything is working fine. Only problem is that, I want to zoom only particular part which I touched(pinch-to-zoom as in Google map). Now, its always…
Braj
  • 2,164
  • 2
  • 26
  • 44
0
votes
2 answers

CATiledLayer - how to use when async downloading images

In my application, I have got a scrollview, a bigger one with lots of subviews on it, subviews gets added dynamically based on scroll. I try to add subviews (imageviews) dynamically on scroll and when user scrolls then I try to fetch more images…
Reno Jones
  • 1,979
  • 1
  • 18
  • 30
0
votes
1 answer

Move UIView into a UIScrollView doesn't work after first zoom

I'm trying to display a large and high quality zoomable image using CATiledLayer and UIScrollView. My code is based on the iOS Large image downsizing sample code. The hierarchy of my UIScrollView is like that : UIScrollView UIImageView : that…
Seb
  • 545
  • 9
  • 29
0
votes
2 answers

Programatically save a PDF in the iPhone

I'm getting a PDF file in my app like this : NSURL* pdfURL = [NSURL URLWithString:urlStr]; CGPDFDocumentRef PDFDocument = CGPDFDocumentCreateWithURL((__bridge CFURLRef)pdfURL); CGPDFPageRef PDFPage = CGPDFDocumentGetPage(PDFDocument, 1); I know…
Seb
  • 545
  • 9
  • 29
0
votes
1 answer

CATiledLayer artifacts at high scale

I am using CATiledLayer to draw map tiles and when zooming it, I start to see some artifacts, which I guess, are caused by precision problem. I scale my CATiledLayer up to 2^18 (262'144x), the artifacts start to appear at about 15'000x I thought…
Nicolas Goy
  • 1,294
  • 9
  • 21
0
votes
0 answers

CATiledLayer not lining up the "layers"

I have a CATiledLayer in a scrollView. The total image is 11,000 x 17,000 and I've cut that up in to tiles of 256 x 256. When I'm in the zoomed in mode the UIScrollview works perfectly with the CATiledLayer and I can see them all flickering in to…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306
0
votes
1 answer

How should I tile images for CATiledLayer?

I know how to tile images, I just don't get how the images should turn out, with sizes and stuff.. The names should be Image_size_row_colum, and one of the Apple tiles images is: Lake_125_0_0.png I use TileCutter to tile the images, but I don't know…
Sti
  • 8,275
  • 9
  • 62
  • 124
0
votes
2 answers

SIGABRT on NSDictionary objectAtIndex: unrecognized selector

I'm having a weird error here. I have an array named __ImageData: static NSArray *__ImageData = nil; NSString *path = [[NSBundle mainBundle] pathForResource:@"ImageData" ofType:@"plist"]; NSData *plistData = [NSData…
Sti
  • 8,275
  • 9
  • 62
  • 124
0
votes
2 answers

Create tiled images for CATiledLayer

I am creating a kind of 'map' in my app. This is basically only viewing an image with an imageView/scrollView. However, the image is huge. Like 20,000x15,000 px or something. How can I tile this image so that it fits? When the app tiles by itself,…
Sti
  • 8,275
  • 9
  • 62
  • 124
0
votes
1 answer

xcode: drawing objects in catiledlayer

I'm trying to draw my own objects to a CATiledLayer, im just not sure how i should push the objects to context that is used in drawLayer. For example i know that i can add the text i want to draw on the screen by declaring the text code inside the…
Krewie
  • 115
  • 1
  • 11
0
votes
1 answer

Sencha Touch/ExtJS: Tiled scroll view (like CATiledLayer)

I'm looking for something like CATiledLayer (on iOS), but for use in PhoneGap/Sencha Touch 2. The idea is to "stream" a very large image from a server in form of tiles - very much like Google Maps does the job. It should support touch gestures on…
BastiBen
  • 19,679
  • 11
  • 56
  • 86
-1
votes
1 answer

CALayer is not type-casted to CATiledLayer

I am new to iPhone programming. I want to use CATiledLayer to load an image. I am creating the subclass of UIVIew class and in the init method of that class, I am writing, CATiledLayer *tiledLayer = (CATiledLayer *)[self layer]; But when I am…
user1053675
  • 39
  • 1
  • 3
-1
votes
2 answers

CATiledLayer issue

I want to use CATiledLayer like in PhotoScroller app. In my TilingView.m I have + (Class)layerClass { return [CATiledLayer class]; } - (id)initWithImageName:(NSString *)name size:(CGSize)size { if ((self = [super initWithFrame:CGRectMake(0,…
Paul T.
  • 4,938
  • 7
  • 45
  • 93
1 2 3
10
11