开发者

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

开发者 https://www.devze.com 2023-01-19 16:55 出处:网络
I am going to restructure my game to use multiple uiviews. Is the following flow correct ? I create 6 uiviews ( one for each sprite).

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

精彩评论

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