开发者

Emulating the "notifications" style window on Facebook iPhone app?

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?

Emulating the "notifications" style window on Facebook iPhone app?

Emulating the "notifications" style window on Facebook iPhone app?


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];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜