开发者

Simulating graphing paper on iPhone

开发者 https://www.devze.com 2022-12-26 20:24 出处:网络
I need to implement \'graphing paper\' in an iPhone app. The user should be presented with a grid. They user can touch individual squares to turn them on, or if they\'re already on, o开发者_StackOverf

I need to implement 'graphing paper' in an iPhone app. The user should be presented with a grid. They user can touch individual squares to turn them on, or if they're already on, o开发者_StackOverflow社区ff.The user can pinch to zoom and scroll around the paper as well..

So far I'm thinking Quartz 2D + UIScrollView is the way to do this but these are both areas of iPhone development that I'm unfamiliar with. Does this seem like a reasonable strategy?


Yes, this would be the way to go. You could also create a UIView and give it a background color based off an image (+[UIColor colorWithPatternImage:]), but, myself, I'd go with option (a).

0

精彩评论

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