In Facebook's iPhone app, you can click "Notifications" at the bottom of the scree开发者_C百科n to display an animated view controller that slides up from the bottom of the screen, with a Done button to dismiss it. How do I implement the same type of view controller in Three20?
I found the solution to this in the TTNavigator sample app. I had forgotten this sample even exists!
The URL map in your AppDelegate must designate the specified URL as a modalViewController, e.g.:
[map from:@"tt://order?waitress=(initWithWaitress:)"
toModalViewController:[ContentController class]];
The viewController that is being pushed must be dismissed as follows:
[self dismissModalViewControllerAnimated:YES];
精彩评论