开发者

Quick Check re How To Implement Multiple UIViews in an iPhone Game

I am going to restructure my game to use multiple uiviews. Is the following flow correct ?

  • I create 6 uiviews ( one for each sprite).
  • game loads root uiview.
  • root uiview init method loads 5 subviews using self addSubview.
  • in the game controller I update each uiview each game tic.
  • the game controller will need a pointer to each Uiview instance.开发者_如何学Python

Thanks all,

Martin


I would probably use the UIViewController for the main view to load the subviews and add them to the main view, not load the subviews directly in the main UIView itself.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜