我正在为iPhone开发钢琴应用程序。 我想开发流畅的可滚动键盘(如音乐采样器)。
我在UIScrollView中放置了一个自定义视图(1440px x 120px)。 我想使用OpenGL因为Quartz太慢了。 但我无法在1440px中制作OpenGL视图。
想要制作更快,更大尺寸的自定义视图吗?
谢谢。
I'm developing Piano App for iPhone. I'd like to develop smooth-scrollable keyboard (like Music Sampler).
I put a custom view(1440px x 120px) in UIScrollView. I wanted to use OpenGL because Quartz is too slow. But I couldn't make OpenGL view in 1440px.
Any idea to make a faster & large-sized custom view?
Thank you.
最满意答案
UIView任何实例的最大大小为1024x1024。 如果是OpenGL则无关紧要。 您可以使用大于该值的可滚动区域,但您必须从多个平铺视图构建它。
Any instance of UIView has a maximum size of 1024x1024. Doesn't matter if it is OpenGL or not. You can have a scrollable area larger than that, but you will have to build it from multiple tiled views.
更多推荐
发布评论