在哪里可以找到 UIController 的标识符(请参阅下面代码中的“xxx”)?
我尝试了所有方法都没有效果,我一直在寻找,没有人提到在哪里可以得到它......听起来像是非常明显的事情,但我无法弄清楚......
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIStoryboard* sb = [UIStoryboard storyboardWithName:@"MainStoryboard"
bundle:nil];
BookMenuController* bookControll = [sb instantiateViewControllerWithIdentifier:@"xxx"];
bookControll.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:bookControll animated:YES];
}
最佳答案
要在 Storyboard中查找标识符,请单击 UIViewController,在属性检查器下,您应该会看到一个名为“标识符”的字段。那是你的“xxx”。
关于objective-c - 在哪里可以从 UIController 中找到 instantiateViewControllerWithIdentifier 的标识符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12065877/