[英]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.