草庐IT

Actionsheet

全部标签

cocoa-touch - iOS 获取类似 ActionSheet 的按钮

我有一个iOSiPhone应用程序,我需要在操作表之外使用操作表样式的按钮。我说的是这些按钮:我见过eBayiPhone应用程序执行此操作,然后将该按钮染成蓝色,但我就是不知道该怎么做。我已经为此思考和谷歌搜索了好几天了。任何帮助将不胜感激! 最佳答案 我过去曾使用预制的photoshopPSD来实现这种效果。到目前为止我最喜欢的是http://www.teehanlax.com/blog/2010/06/14/iphone-gui-psd-v4/ 关于cocoa-touch-iOS获取

ios - UISplitViewController 中的 ActionSheet 在纵向模式下的行为不同于横向模式

我使用基于SplitView的应用程序模板创建了一个新应用程序。然后我向名为actionButton的rootViewController导航Controller添加了一个Action按钮。当按下按钮时,我会显示一个像这样的ActionSheet:UIActionSheet*actionSheet=[[UIActionSheetalloc]initWithTitle:nildelegate:selfcancelButtonTitle:nildestructiveButtonTitle:nilotherButtonTitles:@"AdminFunctions",@"RefreshDat

android - 当呈现模态、iOS Actionsheet、选择器组件时,React Native 上的 float 按钮 (FAB) 不会停留在顶部

在高阶组件中使用absolute定位按钮将在正常用例中发挥作用,但当呈现模式/Action表/选择器等时,按钮不再停留在顶部。 最佳答案 不幸的是,这是不可能的。模式、操作表和警报在新窗口中呈现,具有更高的level因此它们将涵盖所有内容。您也不能插入包含您的FAB的更高级别的窗口,因为这样触摸事件就不会进入您的常规View。有关此的更多文档here.我还认为您不应该尝试完成此操作。屏幕截图中的Action选择器应该完全覆盖该Action按钮,如果您要呈现模式,那么您总是可以尝试向其添加新的FAB。

iOS ActionSheet 的 Android 等效

iOSSDK中UIActionSheet的Android等价物是什么?我正在做一个React-Native项目,需要尽可能保持对native控件的使用。我还没有遇到npm包或其他使用相应平台形式“操作表”的包。他们似乎都在iOS中使用native操作表,并在Android上使用iOS操作表的javascript模拟(这使得它在Android上不是本地的)。如果我能知道Android在iOS显示操作表的地方显示什么,那么我可以使用适用于Android的RNAndroid组件和适用于iOS的操作表。我希望这是一个明确的问题。 最佳答案

ios - UIAlertController .actionSheet 项目之间的分隔线不一样

我用不同的操作创建了UIAlertController。这是代码:typealiasOptionMenuItem=(title:String,style:UIAlertAction.Style,handler:()->Void)@discardableResultfuncshowOptionsAlert(items:[OptionMenuItem])->UIAlertController{letalertController=UIAlertController(title:nil,message:nil,preferredStyle:UIAlertController.Style.ac

ios - 如何从 ActionSheet 更改 UIButton 的文本

我想更改UIButtoncity的文本。但是它不起作用,你能告诉我这里的问题是什么吗?这个IBActionsetUpCityDropDown连接到同一个UIButton。@IBActionfuncsetUpCityDropDown(){letActionSheet=UIAlertController(title:"WhichCity?",message:"CityName",preferredStyle:UIAlertControllerStyle.ActionSheet)letcancelActionButton:UIAlertAction=UIAlertAction(title:"

ios - UIAlertController (ActionSheet) 在设置 tintColor 后改变形状

我的UIAlertController具有首选样式ActionSheet,运行良好,没有任何问题。为了防止冗长的代码墙,我删除了UIAlertAction闭包中的操作并添加了代码:letalert=UIAlertController(title:"Moreactions",message:nil,preferredStyle:.ActionSheet)//alert.view.tintColor=UIColor(red:CGFloat(252.0/255.0),green:CGFloat(112.0/255.0),blue:CGFloat(87.0/255.0),alpha:1.0)a

swift - UIAlertController (ActionSheet) - 无法同时满足约束条件

这个问题在这里已经有了答案:SwiftdefaultAlertViewControllerbreakingconstraints(12个答案)关闭3年前。每次在模拟手机中显示UIAlertController操作表时,我都会收到此警告。代码没什么特别的。letaction1=UIAlertAction(title:"Action1",style:.default){_in}letaction2=UIAlertAction(title:"Action2",style:.default){_in}letcancel=UIAlertAction(title:"Cancel",style:.c

xcode - 以 ActionSheet 样式访问图片库

我正在尝试在注册ViewController中创建一个profilePic。profilePic是UIImageView类型。我希望能够点击它,以便它立即以ActionSheet样式调出照片库。并且还有一个图像框按钮来访问相机。这可能吗?importUIKitclassSignUpViewController:UIViewController,UITextFieldDelegate,UIPickerViewDataSource,UIPickerViewDelegate{@IBOutletweakvarprofilePic:UIImageView!overridefuncviewDidL

ios - 如何在 iPad 中显示 Actionsheet

如何显示UIActionsheet在iPad中,当我使用我当前的代码时,它给了我这个错误:YourapplicationhaspresentedaUIAlertController()ofstyleUIAlertControllerStyleActionSheet.ThemodalPresentationStyleofaUIAlertControllerwiththisstyleisUIModalPresentationPopover.Youmustprovidelocationinformationforthispopoverthroughthealertcontroller'spo