I was wondering how to show a UIActionSheet from the bottom of the screen. I have tried using the showInView:
method with MainView
as the view to show it in but I get the MainView Undeclared
error.
views:
333answers:
3
+2
A:
You need to reference the controllers view:
[actionSheet showInView:self.viewController.view]
ennuikiller
2009-11-09 17:01:57
also look at the UIActionSheet docs for details on showFromToolbar and showFromTabBar, if you have either a tabbar or toolbar.
wkw
2009-11-09 17:41:14
A:
or you can show it in the main window. it will be useful if you have a tabbar application.
[[[UIApplication sharedApplication] delegate] window];
Morion
2009-11-09 17:40:38
+2
A:
If you attempt to show the UIActionSheet on the window though you use TabBar or ToolBar UI, The bottom part of the ActionSheet doesn't respond to your touch. You'd be better to use as follows:
[[[UIApplication sharedApplication] delegate] window];
KatokichiSoft
2009-11-10 00:24:25