I have a custom view and want to add in UIActionSheet as subview but in iPhone successfully added but when I try to add in iPad they show successfully but not show on the actionsheet as subview rather show on the top of the screen. look ipad screen short
iphone screen short
Related
The view customization:
As UIAlertController shows in iPad in popover style. Is it possible to show alert as popover within iPhone devices as well?
I have a UIPickerView on a UIActionSheet. Right now the UIActionSheet makes the view behind the UIActionSheet not touchable. Is there a way that I can make it touchable? Or is that just how a UIActionSheet works?
I don't believe it is possible to make the view behind the UIActionSheet touchable without dismissing it first. They're meant to be modal, i.e. require the user's attention before being dismissed.
From UIActionSheet class reference (emphasis mine):
For applications running on iPhone and iPod touch devices, the action sheet typically slides up from the bottom of the window that owns the view. For applications running on iPad devices, the action sheet is typically displayed in a popover that is anchored to the starting view in an appropriate way. Taps outside of the popover automatically dismiss the action sheet, as do taps within any custom buttons. You can also dismiss it programmatically.
I suppose a way around this could be that you just create your own view that displays similarly. For example, create a UIView that you can animate the same (slide up) when a button is pressed. This UIView can contain your UIPickerView and whatever else you need (probably a cancel button to dismiss it).
Hope this helps, good luck!
I have a uitabbar application, and I would like to hide the UITabbar whenever a viewcontroller slides in (it is a tableview so whenever a row is tapped).
I would like the tab bar to hide whenever a viewcontroller is pushed and would like the entire screen to be covered with this new view like in iPod application of iPhone.
Just set the UIViewController hidesBottomBarWhenPushed proprety to YES before you push the viewcontroller.
viewController.hidesBottomBarWhenPushed = YES;
Does anybody know why a UIPopover or UIActionSheet presented from a UIBarButtonItem in a toolbar in the inputAccessoryView doesn't rotate along with all the other view controllers?
The steps to reproduce this are:
In an Xcode iPad project, add a UILabel editable text field in IB.
Also in IB, add a UIToolbar with a UIBarButtonItem.
In code, set the text field's inputAccessoryView to the toolbar.
Send the becomeFirstResponder message to the text field.
Present an action sheet from the toolbar button item using [actionSheet showFromBarButtonItem:sender animated:YES];
You just need to rotate your iPad to any orientation other than Portrait, and then present the popover to see it happen. If you rotate it while the popover is open, the popover rotates as well so it's in the same weird orientation relative to the rest of the app.
(source: tumblr.com)
Update 2010-08-04 Turns out all popovers and action sheets shown from a item in a toolbar that's an input accessory view (for the keyboard) have this issue. I have submitted a Radar to Apple with Bug ID# 8272121.
ive been looking at some tutorials on a toolbar they all are implemented through the navigation controller delegate. Is there a way i could use the toolbar without using the navigation controller?
right now i have a ViewController with a Scrollview in that scrollview i have images when the user uses a touch gesture then i want a toolbar to be viewable and usable to the user just like on the Photo App.
i want to know how i could use the toolbar and make it functional without going through the app delegate and staying on the current viewController.
A toolbar can be created and positioned just like any other view. Don't confuse toolbars with tabbars.