在我的 Xcode 项目中,我有一个 Controller 可以从标签列表中选择一个标签。
我遇到了如何命名这个 Controller 的问题。 我想到了以下内容。
- 标签选择 Controller
- 标签选择 Controller
我应该选择哪个?
最佳答案
一般来说,对于 View Controller ,您通常会使用后缀 ViewController
。此外,由于“Tag Selection”在语法上比“Tag Select”更正确,因此它应该是名称。因此,将您的 viewController 命名为 TagSelectionViewController
是可行的方法。
如果您想进一步了解 Apple 建议的命名约定,请查看 their obj-c documentation或 swift.org's suggestions .
关于swift - Controller 纳米格。 TagSelectController 或 TagSelectionController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44777337/