I would like to display a list of actions shifted from just above the very top status bar.
When I use the navigationBar as the view to display, the sheet is still displayed at the bottom of the screen. How can I show it coming from the top instead?
The class I call the following code is "UIViewController"
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"Hello" delegate:nil cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil]; UINavigationBar *navBar = self.navigationController.navigationBar; [sheet showInView:navBar];
I saw some applications showing some kind of sliding box where the status bar is from (for example: Twitterrific). How it's done?
iphone uinavigationcontroller uinavigationbar uiactionsheet
Alexi groove
source share