作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想打开一个 Tweetbot 操作 Controller ,它在 XLActionController 中作为示例提供。 :
let actionController = TweetbotActionController()
actionController.addAction(Action("View Details", style: .default, handler: { action in
// do something useful
}))
actionController.addAction(Action("View Retweets", style: .default, handler: { action in
// do something useful
}))
actionController.addAction(Action("View in Favstar", style: .default, handler: { action in
// do something useful
}))
actionController.addAction(Action("Translate", style: .default, executeImmediatelyOnTouch: true, handler: { action in
// do something useful
}))
actionController.addSection(Section())
actionController.addAction(Action("Cancel", style: .cancel, handler:nil))
present(actionController, animated: true, completion: nil)
我创建了一个TweetbotActionController
实例,但它提示以下错误:
Use of unresolved identifier 'TweetbotActionController'
最佳答案
根据docs ,确保您有 Podfile,例如:
use_frameworks!
target '<Your App Target>' do
pod 'XLActionController'
pod 'XLActionController/Tweetbot'
end
为了使用提供的示例。
关于ios - XLActionController 不知道任何类,例如 TweetbotActionController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57433301/
我正在使用库https://github.com/xmartlabs/XLActionController为了创建自定义操作表。一切正常,但我找不到改变单元格颜色的方法。 我已设法更改背景 Colle
我想打开一个 Tweetbot 操作 Controller ,它在 XLActionController 中作为示例提供。 : let actionController = TweetbotActio
我是一名优秀的程序员,十分优秀!