uiactionsheet

UIActionSheet cancel button strange behaviour

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 18:44:42
问题 I have a UIBarButtonItem opening an action sheet to offer users choices about what to do. Everything works as expected unless I try to click on the "Cancel" button. The target of the button appears to have moved up from where it should be. I can only activate it by clicking somewhere in the middle of the "Cancel" and "Ok" buttons. I've tried at action sheets in other applications and they work fine, so it's not just my big thumb. The action sheet is opening in a UIViewController - (void

Is it possible to edit UIAlertAction title font size and style?

你说的曾经没有我的故事 提交于 2019-11-26 17:03:36
问题 Now that iOS8 deprecated UIActionsheet and UIAlertview the customization working on iOS7 is not taking effect anymore. So far the only customization I'm aware is the tint color. And what I need is changing the title's font size and style which I haven't found any way of doing so with the new UIAlertAction . Already referred to this but I'm still hoping there's a way to change at least the title size and font. Providing you some of my code for UIAlertAction UIAlertController *

UIActionSheet is not showing separator on the last item on iOS 7 GM

不打扰是莪最后的温柔 提交于 2019-11-26 16:23:36
问题 It could be probably a bug on iOS7. But the last button is not separated from the previous one As you can see from the image. This happens on both Simulator and device using iOS7 GM. Does everyone else has the same problem? UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:@"First", @"Second", @"Third", @"Fourth", nil]; [actionSheet showInView:self.view]; As you can see the code is quite

ActionSheet not working iPad

核能气质少年 提交于 2019-11-26 15:43:58
问题 I'm using ActionSheet in my application. On my iPhone it works, but it doesn't on the iPad simulator. this is my code: @IBAction func dialog(sender: AnyObject) { let optionMenu = UIAlertController(title: nil, message: "Choose Option", preferredStyle: .ActionSheet) let deleteAction = UIAlertAction(title: "Delete", style: .Default, handler: { (alert: UIAlertAction!) -> Void in println("Filtre Deleted") }) let cancelAction = UIAlertAction(title: "Cancel", style: .Cancel, handler: { (alert:

Presenting a view controller modally from an action sheet's delegate in iOS8 - iOS11

廉价感情. 提交于 2019-11-26 12:09:56
问题 So I noticed that in iOS8 beta 3 ( Update : still happens in iOS 11.2) on iPad, when attempting to present a view controller from within a delegate method of a UIActionSheet , \"nothing\" happens and a log message is output to the debug console, stating that presentation was attempted while transitioning an alert controller: Warning: Attempt to present <UIViewController: 0x...> on <ViewController: 0x...> which is already presenting <UIAlertController: 0x...> 回答1: Update: As of iOS 9 SDK,

Add UIPickerView in UIActionSheet from IOS 8 not working

徘徊边缘 提交于 2019-11-26 12:03:38
问题 I am adding UIPickerView to UIActionsheet but its working perfectally in ios 7 but not working in ios 8 . Please help me to solve that. Here i attached screenshot for that. Thanks I am using following code for that. UIActionSheet *actionSheet; NSString *pickerType; - (void)createActionSheet { if (actionSheet == nil) { // setup actionsheet to contain the UIPicker actionSheet = [[UIActionSheet alloc] initWithTitle:@\"Please select\" delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil

Adding Images to UIActionSheet buttons as in UIDocumentInteractionController

。_饼干妹妹 提交于 2019-11-26 11:55:52
问题 Is it possible to add an image to the buttons of the UIActionSheet as seen in UIDocumentInteractionController ? If so, please let me know how it is done. 回答1: Try this way, i hope it may be help you. UIActionSheet * action = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"",nil]; [[[action valueForKey:@"_buttons"] objectAtIndex:0] setImage:[UIImage imageNamed:@"yourImage.png"] forState:UIControlStateNormal]