开发者

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

开发者 https://www.devze.com 2023-01-28 23:51 出处:网络
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 butt

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

精彩评论

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

关注公众号