为什么所有这些重复项都出现在 Xcode 自动完成功能中? [英] Why do all these duplicate items appear in the Xcode autocomplete?

查看:26
本文介绍了为什么所有这些重复项都出现在 Xcode 自动完成功能中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以提出一种防止以下重复的方法吗?

Can anyone suggest a way to prevent the following duplicates?

推荐答案

您的类符合 UITableViewDataSource 和 UITableViewDelegate,它们声明了这些方法.所以它可能会实现这些方法.但它也继承自 UITableViewController,它确实实现了它们.所以你的类可能会覆盖这些方法.因此,方法列表可以说是来自两个不同的来源.

Your class conforms to UITableViewDataSource and UITableViewDelegate, which declare those methods. So it might implement those methods. But it also inherits from UITableViewController, which does implement them. So your class might override those methods. Thus the method listings are arriving, as it were, from two different sources.

大新闻:这个问题在 Xcode 10.2 中得到解决.

Big news: this problem is resolved in Xcode 10.2.

这篇关于为什么所有这些重复项都出现在 Xcode 自动完成功能中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆