uiactionsheet

UIActionSheet in iOS7 dismissing when user taps ANYWHERE on the screen on iPhone

一个人想着一个人 提交于 2019-12-05 09:32:39
I've noticed that in iOS 7 a **UIActionSheet** automatically dismisses when a user taps anywhere on the screen on an **iPhone** . This was NOT the case in iOS 6 and is leading to unintended effects. Is this a UI change? Bug? Is there a way to disable this? From iOS 7 docs: "As described in iOS human interface guidelines, you should include a Cancel button with action sheets displayed on iPhone and with those displayed on iPad over an open popover. Otherwise on iPad, action sheets are displayed within a popover, and the user can cancel the action sheet by tapping outside the popover, in which

Change tint color of UIAlertview and UIActionsheet buttons

微笑、不失礼 提交于 2019-12-05 03:28:48
I am trying to adapt my application for iOS 7. The issue I am having is I can not change the tint color of some controls. I did add self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; if (IOS7_OR_LATER) self.window.tintColor = [self greenTintColor]; to my app delegate's - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions It mostly helped but color of message box and action sheet buttons is still the default blue. How can I recolor all such buttons too? Some screenshots: As UIAlertView is

Bringing up a UIPickerview rather than keyboard input iOS

别说谁变了你拦得住时间么 提交于 2019-12-05 00:43:51
Basically I would like to have the user click in the text field and it bring up a populated pickerview rather than a keyboard. This would also need a toolbar with a done button as well Im presuming. I currently have the field set as an output and action and not much more. I also have an actionsheet in code being used for when the user submits something as well if that makes any difference to possibly using an actionsheet for this as well. I tried researching this topic but 99% of the topics were with datepickers rather than pickerviews (or very old code). Here is an image of what it looks like

UIActionSheet Invalid parameter not satisfying: view != nil

☆樱花仙子☆ 提交于 2019-12-04 21:23:57
I'm getting this error after popping some view controllers on a navigation stack, and at the end I get to ask a question through an action sheet. I'm getting the error parameter not satisfying view != nil , which drives me crazy because it-so facto is not a nil value when I check before calling the action sheet. if (self.view != nil) { NSLog(@"view is not nil"); } UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"title" delegate:nil cancelButtonTitle:@"cancel" destructiveButtonTitle:@"destructive" otherButtonTitles:nil]; [actionSheet showInView:self.view]; Very likely that the

iOS - Send Image to Instagram - DocumentInteraction

╄→гoц情女王★ 提交于 2019-12-04 19:21:47
问题 Would it be possible to share a picture to Instagram bypassing the Action Share Sheet? Please Note that I am aware of the UIDocumentInteractionController and the hooks and in fact it works fine. With their sample code you get a Copy to Instagram option (either unique if you use the exclusive UTI or a big list of apps which can handle a JPG/PNG, alongside with Instagram). This works fine, but I'd like to know if there's a way to execute the action "Copy to Instagram" without the need to

Adding UIPickerView to UIActionSheet (buttons at the bottom)

北战南征 提交于 2019-12-04 17:55:46
I want to show a picker view (sliding up) deactivate the background while it's visible show (UIActionSheet) buttons at the bottom (not at the top) It seems to me an easy solution at first since you can find code for adding a picker view to an action sheet everywhere in the web but all solutions position the buttons at top and I need to put the buttons at the bottom of the action sheet (alignment?) . Is this possible? I guess it is if I look at: Example Regards Jeven EDITED (my solution based on coded dads solution) UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate

Multiple UIActionSheets on the same delegate

爷,独闯天下 提交于 2019-12-04 13:26:32
问题 I'm writing a puzzle game. When the user presses the check button, I see if the solution they entered is correct. Depending on the result, I present one of two action sheets for them. For now I just have some NSLog statements to make sure things are getting called, but only one of the sheets seems to work properly. Nothing gets called when I click a button in showErrorsActionSheet . The action sheet disappears off the screen, but the logs never print. I suspect it has something to do with

Actionsheet on ipad

拥有回忆 提交于 2019-12-04 12:28:56
This code works fine on iPhone, but on iPad the actionsheet is showing up in the middle of screen. not in the corner where the trigger button is. Also there is no cancel buttons showing up. Also, the app is only in landscape mode. The camera trigger button is on top right corner of the screen. mediaPicker = [[UIImagePickerController alloc] init]; mediaPicker.allowsEditing = YES; if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel"

Customised UIActionSheet

南笙酒味 提交于 2019-12-04 11:06:09
How can I customise UIActionSheet to look like this : Also, if I customise UIActionSheet , will there be a chance of app getting rejected ? If you really want to do something like that you could give this a go. I can't guarantee it'll be approved by Apple and honestly, it's just not recommended from a UI and Apple HIG perspective. Keep in mind UIActionSheet has been deprecated and it's recommended to use UIAlertController with a preferredStyle of .ActionSheet so that's what this example is going to use. import UIKit class ViewController: UIViewController { override func viewDidAppear(animated:

Custom UIActionSheet for iOS

蓝咒 提交于 2019-12-04 08:31:52
问题 Is it possible to create an action sheet that looks like the attached image for iOS? This is the screenshot from the Photo app on iOS6, when you press the action button. I really like the way the options are listed as their icons, rather than horizontal buttons with titles. I looked through Google and also in Apple's iOS reference but I can't seem to find anything that teaches me how to create something like this for my app. 回答1: You can create this by using an Activity View Controller. It's