[英]SWIFT: CAGradientLayer not shown property in TableViewCell programmatically
[英]TableViewCell copy property changed in Swift 3
盡管不確定為什么會這樣,您是否可以嘗試通過覆蓋canPerformAction委托來明確地指定它,
override func canPerformAction(_ action: Selector, withSender sender: AnyObject?) -> Bool {
if action == #selector(cut(_:)) {
return false
}
if action == #selector(paste(_:)) {
return false
}
if action == #selector(select(_:)) {
return false
}
if action == #selector(selectAll(_:)) {
return false
}
...
return super.canPerformAction(action, withSender: sender)
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.