【发布时间】:2012-07-02 02:40:09
【问题描述】:
我想为多个场景使用同一个 ViewController。现在我想根据使用的场景实现稍微不同的行为。我想这可以使用标识符。喜欢(伪代码)
if (self.identifier == scene1)
{
// do this
}
else if (self.identifier == scene2)
{
// do that
}
如何从 ViewController 调用标识符?
编辑:
我的意思是来自 Inpector 的这个标识符 - 我如何在代码中调用它?
提前致谢。
【问题讨论】:
标签: iphone ios uiviewcontroller storyboard uistoryboard