I've started developing my first game. Here some my thoughts about architecture: Most examples use the project template based on single view and manage of control visibility by hand. In my game I've 6-7 views and I'd like use Interface Builder for some of them. There are some problems too:
If I use a single based view I'll need, for example, in "Play" button's handler to create new view with a game board and destroy previous one (the view contains that button's handler). 开发者_如何学运维Is it right and how can I do it?
If I use a navigation based view I'll use push/pop methods but I'll need to hide a navigation bar for game atmosphere and to do navigation by hand. Moreover, I couldn't find any example of use a navigation controller in games. Does anybody use it and how?
What can you advice me?
1) you can hide navigation bar from nib file.
2) you can remove navigation animation by setting animation by [self pushViewController:nav animated:NO];
3)if you do not want to use navigation controller , you can use view based application and through coding you can add/remove subviews and views as per need.
精彩评论