开发者

Layered UIViewControllers?

Maybe this isn't the best way to approach this...

Working on an app that could use two simultaneous UIViewControllers, layered, one on top of each other.

The rear UIViewController would run some background animation and respond to certain touch events through the front UIViewController.

The front 开发者_运维知识库UIViewController runs a game. Half a dozen UIImageViews with buttons on top.

The reason I want to separate them is that the code for each UIViewController is unique and somewhat complex. I really don't want to mix two separate state machines and related methods and properties into a single UIViewController. Doing that for a demo and it is a mess.

What would be the right approach, if not the layered UIViewController idea?


It does sound like you want a single UIViewController class that manages its views via multiple custom UIView sub-classes.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜