I'm using a
UITableViewController for a menu in a game. The table view opens a a view controller for my custom
UIView that shows the game. When the game finishes the
UIView is notified (which is kinda ruining the MVC principals) and from there I am kinda lost.
- Can a
UIViewcommunicate with its controller? How?
- Can one controller talk to the one that started it? How?
- How do I transition between all of this complicated web of views and controllers gracefully?
How is layoutIfNeeded used?
1:Login / Logout on an iPhone app
- Use a delegate protocol here. Count the number of times a method is called in Cocoa-Touch? Your custom game UIView must use a
delegateproperty and call methods on this delegate when events appear (game over, game paused, view closed, etc). Scrolling to range in UITextView Here's a great post on using delegates: How did I create delegates in Objective-C?. should we need to release viewcontroller's object after pushing into navigation controller?
- I'd recommend using a UINavigationController. scrollview scrolls smooth in simulator but not in device? You don't necessarily need to show the navigation bar, although if you nest your view controllers in a navigation controller you have access to
-popViewControllerAnimated:which make it really easy to navigation between levels of nested view controllers.. Can we run Java applictions on iPhone? [closed]
- Ananother benefit of UINavigationController - you'll receive a nice slide animation when you switch between views.. What's a Java alternative to Google App Engine for developing iPhone Push Notification services?