简体   繁体   English

如何为没有故事板的 UIViewController (Swift) 提供标识符?

[英]How to give an identifier for UIViewController (Swift) which has no storyboard?

I have multiple view controllers created programmatically.我有多个以编程方式创建的视图控制器。 (No storyboards) (没有故事板)

Is there a way of giving an identifier or something to differentiate between view controllers just like giving an identifier for storyboards.有没有办法给一个标识符或什么东西来区分视图控制器,就像给故事板一个标识符一样。

NO, there are no ways to give an identifier to differentiate between view controllers.不,没有办法给一个标识符来区分视图控制器。 The name of your UIViewController is its identifier. UIViewController 的名称是它的标识符。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何快速使用代码移动到现有的UIViewController(在情节提要中) - How to move to an existing UIViewController (in storyboard) with code in swift 是否可以通过 Swift/Objective-C 中的 UIViewController 或 Storyboard 以编程方式获取基本 UIViewController 的标识符? - Is it possible to programmatically get the identifier of a basic UIViewController from an UIViewController or Storyboard in Swift/Objective-C? iOS6:如何通过标识符在Storyboard中连接UIViewController? - iOS6: How to connect UIViewController in Storyboard via Identifier? SWRevealViewController with StoryBoard with storyboard Identifier in Swift 不继续如何做到这一点 - SWRevealViewController with StoryBoard with storyboard Identifier in Swift not segue how to do that 如何在故事板中为视图控制器提供“标识符”? - How do I give an “identifier” to a view controller within my storyboard? 如何在不使用Swift中的Storyboard的情况下以编程方式加载UIViewController - How to load a UIViewController programmatically without using Storyboard in Swift Swift:如何知道哪个情节提要板处于活动状态 - Swift: How to know which Storyboard is active 在新的Storyboard中将值传递给UIViewController - Swift - Passing Values to UIViewController in new Storyboard - Swift Swift 中 UIViewController 的自定义初始化,在 storyboard 中设置接口 - Custom init for UIViewController in Swift with interface setup in storyboard 无法在 Swift Package 中显示 UIViewController 及其 Storyboard - Not able to present UIViewController with its Storyboard in a Swift Package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM