开发者

Does iPad support 4096x4096 view?

Does开发者_开发问答 iPad support view with a 4096x4096 frame?


You can always try and find out, but for general purposes, I wouldn't go that large without a CATiledLayer. If you don't know about CATiledLayers, basically you need to override the static function +(class)LayerClass in your subclass of UIView and return [CATiledLayer class]. This class is defined in the QuartzCore framework, which is not included by default.

When using CATiledLayers, you can make the view much larger than would otherwise be supported, because the layer handles drawing the view in small chunks (default of 256x256 tiles) rather than all at once. It's basically what the UIWebView and Google Maps use (I assume. It's in that vein anyway).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜