腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(47)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
objc中的
UIContextMenuConfiguration
我想用objC实现
UIContextMenuConfiguration
在swift中有很多例子,但我必须在objc中结束一个问题…… 所以我在swift中找到了这样的例子 override func_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
{ let configuration =
UIContextMenuConfigurat
浏览 45
修改于2019-09-04
得票数 2
1
回答
尝试子类
UIContextMenuConfiguration
的Xcode错误
在尝试子类
UIContextMenuConfiguration
时,我得到了Xcode编译器错误。下面是再现问题的简单代码:class DateDifferenceContextMenu:
UIContextMenuConfiguration
{super.init(identifier: nil, previewProvider: nil, actionProvider: nil)}必须调用超类的指定初始化程序'
UIContextMenuConfiguratio
浏览 5
修改于2020-09-13
得票数 0
回答已采纳
3
回答
iOS 13.0 UIMenu和UIAction for
UIContextMenuConfiguration
contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) ->
UIContextMenuConfiguration
{ let configuration =
UIContextMenuConfiguration
(identifier: nil, previewProvider: nil) { actions
浏览 2
修改于2020-06-08
得票数 5
回答已采纳
1
回答
简单的
UIContextMenuConfiguration
导致无法同时满足约束
collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
{ let configuration =
UIContextMenuConfiguration
(identifier: nil, previewProvider: nil){ action
浏览 13
修改于2020-07-18
得票数 0
回答已采纳
1
回答
找不到演示视图控制器
UIContextMenuConfiguration
_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
浏览 94
修改于2020-10-15
得票数 0
1
回答
如何禁用CollectionView iOS Swift上下文菜单的长按动画?
有三个UICollectionView,用于我创建的所有UICollectionView contextMenu,但是对于最后一个UICollectionView,我不想显示菜单,并且对于<return
UIContextMenuConfiguration
collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
{
浏览 25
提问于2021-02-24
得票数 0
回答已采纳
1
回答
如何在UIMenu中制作不可点击的菜单项?
如何在
UIContextMenuConfiguration
中制作不可点击的菜单项?现在,当我点击菜单项时,什么都没有发生,菜单就会关闭。我需要菜单不关闭时,我点击项目。以下是一些代码:var contextMenuConfiguration:
UIContextMenuConfiguration
{ identifier: nil, previewProvid
浏览 4
提问于2021-07-29
得票数 0
回答已采纳
1
回答
更改UIImage在ContextMenu中的弹出式大小?
contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) ->
UIContextMenuConfiguration
{ let share = UIAction
浏览 2
修改于2020-07-16
得票数 2
回答已采纳
1
回答
为WKWebView链接设置UIContextMenu
contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) ->
UIContextMenuConfiguration
{ let configuration =
UIContextMenuConfiguration
(identifier: nil, previewProvider: nil) { (_)
浏览 113
修改于2020-10-12
得票数 1
回答已采纳
2
回答
在collectionView中手动调用单元格上下文菜单
collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
{} let context = <e
浏览 9
提问于2022-01-25
得票数 0
1
回答
当点击集合视图单元格时,如何展开和显示标签的完整长度?
collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
indexPath.item]) return configureContextMenu(text: "") func configureContextMenu(text: String) ->
UIContextMenuConfigurati
浏览 5
修改于2022-06-08
得票数 0
1
回答
UIKit Swift:阴影故障,上下文菜单
collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
{ if collectionView == foodOnTheShelf { let config =
UIContextMenuConfiguration
浏览 6
提问于2022-07-25
得票数 1
1
回答
ContextMenuConfigurationForRowAt in iOS13
_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
editMenu, ]) return
UIContextMenuConfiguration
浏览 4
修改于2019-10-15
得票数 4
回答已采纳
1
回答
在swift中点击按钮即可显示上下文菜单
interaction: UIContextMenuInteraction, ->
UIContextMenuConfiguration
attributes: [.destructive]) { action in } return
UIContextMenuConfiguration
浏览 50
提问于2021-01-20
得票数 3
1
回答
contextMenuConfigurationForItemsAtIndexPaths for UITableView?
我们知道iOS 13将ContextMenu函数添加到UITableView中,我们可以使用以下方法显示UITableViewCell的上下文菜单:- (nullable
UIContextMenuConfiguration
*)collectionView:(UICollectionView
浏览 34
修改于2022-12-04
得票数 0
1
回答
UIButton上的contextMenuInteraction
contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) ->
UIContextMenuConfiguration
String : Any] = ["tag" : button.tag as NSNumber, "indexPath" : indexPath as IndexPath] let config =
UIContextMenuCon
浏览 105
修改于2020-12-21
得票数 0
回答已采纳
1
回答
如何将自定义视图添加到上下文菜单iOS
collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) ->
UIContextMenuConfiguration
= NSString(string: "\(post.createdAt)") return
UIContextMenuConfiguration</em
浏览 35
修改于2021-01-28
得票数 2
3
回答
如何以编程方式触发UIContextMenuInteraction上下文菜单?
contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) ->
UIContextMenuConfiguration
{ return
UIContextMenuConfiguration
(identifier: nil, previewProvider: nil) { suggestedActions
浏览 0
修改于2020-07-13
得票数 17
回答已采纳
1
回答
如何知道(iOS 13+) configurationForMenuAtLocation上的上下文菜单触发了哪个configurationForMenuAtLocation单元
contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) ->
UIContextMenuConfiguration
{ let configuration =
UIContextMenuConfiguration
(identifier: nil, previewProvider: nil) { suggestedActions
浏览 8
提问于2020-04-11
得票数 6
回答已采纳
1
回答
IOS13 UIContextMenu显示缩短的UIAction标题
UIContextMenuInteraction, return
UIContextMenuConfiguration
(identifier: nil, previewProvider: nil) { _ -> UIMenu in
浏览 36
提问于2019-12-05
得票数 1
第 2 页
第 3 页
点击加载更多
领券