jessedc/JCTiledScrollView

Tilesize in retina device is not correct

smoothdvd opened this issue · 0 comments

Screenshot:
Wrong:
ios 2014417 9 36 38

Should be:
ios 2014417 9 35 41

I think code in JCTiledView.m

    CGSize scaledTileSize = CGSizeApplyAffineTransform(self.tileSize, CGAffineTransformMakeScale(self.contentScaleFactor, self.contentScaleFactor));
    self.tiledLayer.tileSize = scaledTileSize;

is not correct: scaledTileSize will be 512 in retina device, but the tile images size is 256x256.