- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的代表中它显示警告
- (BOOL)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender
{
return YES;
}
警告:'tableView:performAction:forRowAtIndexPath:withSender:' 的实现中的返回类型冲突:'void' 与 'BOOL'(又名。'signed char')
指导我解决这个警告
最佳答案
根据协议(protocol)的要求,将返回类型设置为void
:
- (void)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender
您可能混淆了返回 void
的 tableView:performAction:forRowAtIndexPath:withSender:
方法与 tableView:canPerformAction:forRowAtIndexPath:withSender:
code> 方法,它返回 BOOL
。
关于ios - TableView :performAction:forRowAtIndexPath:withSender delegates show warning,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20963794/
我正在开发一种无障碍服务,具有类似的触摸探索功能。 我可以通过以下方式聚焦菜单和主屏幕图标 public void updateViewNodes(AccessibilityNodeInfo sour
我在我的应用程序中使用 AccessibilityService 将一些文本粘贴到另一个应用程序的 EditText 中。 我正在使用以下代码来实现相同的目的, Bundle bundle = new
我正在使用以下配置: Selenium webdriver 3.3.0 with C# language Geckodriver V0.15.0 Firefox 45.9.0. 当我使用 Action
您好,我想使用 AccessibilityService 滚动到布局中的特定位置。 我尝试了几种方法,但只有 AccessibilityNodeInfo.ACTION_SCROLL_FORWARD 有
在我的代表中它显示警告 - (BOOL)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(
我想在我的无障碍服务中针对特定操作清除 editText 的输入焦点。 我获取了具有输入焦点的节点并尝试清除它,但 performAction 总是返回 false: AccessibilityNod
我是一名优秀的程序员,十分优秀!