腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
“
类型
'
UIAlertController
‘
没有
成员
'
Style
’”
尝试创建一个警报框,但是出现了一个问题:“
类型
'
UIAlertController
‘
没有
成员
'
Style
'” @IBAction func showMessage (sender: UIButton){message: "Hello World", pref
浏览 23
提问于2019-05-19
得票数 1
回答已采纳
1
回答
使用SwiftUI在条件内显示警报
、
、
、
、
} let alert =
UIAlertController
(title: "My Title", message", preferredStyle:
UIAlertController
.
Style
.alert) UIAlertAction.<e
浏览 5
提问于2019-09-01
得票数 3
回答已采纳
2
回答
正在尝试创建
UIAlertController
,似乎无法初始化
、
、
、
我已经尝试了完全按照下面所述的方式进行
UIAlertController
初始化:letwinAlert =
UIAlertController
(title: "You won!", preferredStyle: .alert) 编辑 修复了开机自检时的拼写错误。此外,如果我尝试将最后一个字段样式从.al
浏览 4
提问于2020-03-11
得票数 1
3
回答
alertView现在是alertController
、
、
我试图在iOS中完成我的登录页面,在我将alertView更改为alertController之后,页面上写着“'
UIAlertController
‘
类型
的值
没有
成员
'show'”。我的代码是: var alertView:
UIAlertController
=
UIAler
浏览 0
提问于2016-05-22
得票数 1
3
回答
ViewController
类型
的值
没有
成员
*functionName*
、
、
在我的应用程序中,我有几个场景,每个场景显示一个不同的
UIAlertController
,所以我创建了一个函数来显示这个警报,但是我似乎不能在"okAction“中调用self.Function。我得到了一个错误: { let r
浏览 6
提问于2015-12-26
得票数 8
回答已采纳
1
回答
从var返回
UIAlertController
、
我正在尝试使用计算属性返回一个警报控制器,但是我收到了错误消息"Cannot convert value of type '() -> _‘to specified type '
UIAlertController
代码示例如下: var displayErrorController:
UIAlertController
= { let controller =
UIAlertCont
浏览 0
提问于2018-01-27
得票数 0
回答已采纳
1
回答
TouchID get错误
类型
“LAError”
没有
成员
“UserCancel”
、
、
我正在绑定以启用touchId,但是我得到了错误: 我发现它是LAError的一个
成员
,我错过了什么?这就是Xcode给我的。
类型
'LAError‘
没有
成员
'AuthenticationFailed’
类型
'LAError‘
没有
成员
'UserCancel’
类型
'LAError‘
浏览 4
提问于2016-10-03
得票数 1
3
回答
无法从处理程序访问类中存在的变量
、
、
、
、
let num = icnNum { 我不知道如何从处理程序访问该不能在
类型
“ViewController”上使用实例
成员
“icnN
浏览 0
提问于2016-11-29
得票数 4
1
回答
在swift中展开多个可选选项
、
、
、
、
, actions: [UIAlertAction],
style
:
UIAlertController
.
Style
) { actions.forEach:
style
)中。, actions: [UIAlertAction],
style
: <e
浏览 16
提问于2021-07-26
得票数 0
回答已采纳
2
回答
如何创建警报,从底部滑到iOS上的按钮?
、
如何在iOS上创建类似Instagram的取消跟踪警报(两个按钮、图像和消息)?有现成的组件吗?还是应该从头开始开发?这是一个截图:
浏览 1
提问于2016-03-20
得票数 4
回答已采纳
1
回答
当前视图: Swift 3
、
、
这是我的代码,我得到了“'GameOverScene‘
类型
的值
没有
成员
’礼物‘”,在这里我试图显示视图。tweetController, animated: true, completion: true) alert.addActi
浏览 0
提问于2016-10-06
得票数 0
回答已采纳
1
回答
在Facebook上分享最佳分数
、
、
亲爱的,我收到一个错误“
类型
为'GameScene‘的值
没有
成员
'present’”forself.present(facebookSheet, animated: true, completion: nil) let alert =
UIAlertController
preferredStyle: UIAlertController
浏览 3
提问于2018-03-02
得票数 1
回答已采纳
2
回答
UIAlertController
与内存使用
、
、
、
、
) }) let cancel = UIAlertAction(title: "Cancel",
style
: .cancel) { (action) -> Void无论如何,我想当我单击
UIAlertController
的cancel或ok按钮时,内存将返回到14,4,甚
浏览 6
提问于2016-11-09
得票数 1
1
回答
类型
'AuthErrorCode‘的值
没有
成员
'debugDescription’
、
、
该应用程序不启动,并抛出'AuthErrorCode‘
类型
的值,
没有
成员
'debugDescription’错误。有人知道我怎么能摆脱这个吗?switch loginResult case .cancelled: print(error.localizedDescrip
浏览 3
提问于2022-11-08
得票数 0
1
回答
用Swift编写类扩展的单元测试
、
、
、
message, preferredStyle: .Alert)public func presentAlert(title: String, message : String)其次,基于您的评论,这就是我对虚拟值调
浏览 1
提问于2016-08-12
得票数 11
回答已采纳
3
回答
当呈现控制器为模式时,不会调用UIAlertAction闭包
、
当我在所呈现的导航控制器的任何屏幕中显示
UIAlertController
时,警报控制器被正确地显示,但是任何UIAlertAction的闭包在被按下之后都
没有
被调用。显示警报的代码非常简单,下面是代码片段:func createAlert() ->
UIAlertController
{ UIAlertAction(title: "
浏览 0
提问于2019-10-14
得票数 0
1
回答
Swift:在
类型
“”ViewController“”上使用实例
成员
;是否要改用“”ViewController“”
类型
的值?“”
、
、
正如标题所示,Swift告诉我,我调用的是ViewController类的
成员
,而不是对象。我已经看了很多其他的帖子,但找不到我错在哪里。usersPassword"}let DestructiveAction = UIAlertAction(title:
浏览 1
提问于2017-01-18
得票数 1
4
回答
斯威夫特1.2中的变化让我困惑
、
= nil) { loginAlert.addAction(UIAlertAction(title: "Okay",
style
: 不能使用
类型
为((Boo
浏览 5
提问于2015-04-12
得票数 1
1
回答
选择器presentViewController在
UIAlertController
中
没有
已知的类方法
、
、
我正在尝试实现
UIAlertController
以使用显示错误消息,但在这一行上我发现了错误,因为我搜索并得到了许多解决方案,但这里
没有
为选择器presentViewController [self presentViewControllertitle withMessage: (NSString*) message preferredStyle:(UIAlertControllerStyle)preferredStyle
UIAlertController
*alert = [
UIAlertController</em
浏览 2
提问于2015-07-08
得票数 2
回答已采纳
1
回答
如何在斯凯夫斯威夫特中呈现一个UIAlert
、
我环顾四周,
没有
人在斯威夫特找到这个答案,所以它就在这里。我收到一个错误,说游戏场景中
没有
一个名为presentViewController的
成员
。var alertController =
UIAlertController
(title: "Nothing Selected",,
style
: UIAlertActionStyle.Cancel,
浏览 1
提问于2015-09-25
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
微信头像|各种类型style
卡友看过来,佛系 专一 潮流……这里有没有你的 style?
Java 日期类型比较没有返回正确的结果
Python 之父没有离开,成为了指导委员会成员
PS保存类型没有jpg和jpeg怎么办
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券