社区
Swift
帖子详情
selector 问题求教 ,does not respond to selector
cs18716691591
2017-11-13 08:58:39
提示是does not respond to selector
代码如下
...全文
1175
2
打赏
收藏
selector 问题求教 ,does not respond to selector
提示是does not respond to selector 代码如下
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
sinat_34548977
2018-03-01
打赏
举报
回复
@objc func saveQRImageAction() { UIImageWriteToSavedPhotosAlbum(UIImage(named: "gyfx04")!, self, #selector(imageSavedToPhotosAlbum(image:error:contextInfo:)), nil) } @objc func imageSavedToPhotosAlbum(image:UIImage,error:Error?,contextInfo:Any) { hideShareView() if error == nil { showMBProgressText("保存成功!") } else { showMBProgressText("保存失败!") DLog(message: "二维码保存失败:\(error!)") } }
在路上奔跑的coder
2017-12-07
打赏
举报
回复
用#selector()作为方法选择器
'#
selector
' does not refer to an '@objc' method,No method declared with Objective-C
selector
'compos
swift3中,添加事件的
selector
时 action:#
selector
(“composeBtnClick”)和 action:(“composeBtnClick”)都会出错正确的写法是 action :#
selector
(MainViewController.composeBtnClick) 然后在方法...
K8S——Deployment `
selector
` does not match template `labels`
deployment.yaml kind: Deployment apiVersion: apps/v1 metadata: labels: app: my-nginx name: my-nginx ...
selector
: matchLabels: app: my-nginx-test replicas: 2 template: metadata: labe
'dict' object does not support indexing
利用python3连接postgres执行sql查询报错如下: 'dict' object does not support indexing 排查原因为sql语句中带有%符号导致。
Argument of '#
selector
' refers to instance method 'action' that is not exposed to Objective-C
在 Swift 4.0 中会报错:Argument of '#
selector
' refers to instance method 'action' that is not exposed to Objective-C。解决办法有两种: 1、在该类前加上: @objcMembers class ViewController: ...
.not(
selector
)选择器
1、.not(
selector
):去除所有与给定选择器匹配的元素 2、示例 (1)源码 not.html: .not(
selector
)选择器 body{ width:100%; height:200px; background-color:#99CCFF; font-size:36px; font-...
Swift
1,420
社区成员
425
社区内容
发帖
与我相关
我的任务
Swift
Swift,苹果于2014年WWDC(苹果开发者大会)发布的新开发语言,可与Objective-C共同运行于MAC OS和iOS平台,用于搭建基于苹果平台的应用程序。
复制链接
扫一扫
分享
社区描述
Swift,苹果于2014年WWDC(苹果开发者大会)发布的新开发语言,可与Objective-C共同运行于MAC OS和iOS平台,用于搭建基于苹果平台的应用程序。
swift
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章