我在哪里可以找到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];
}
答案 0 :(得分:1)
您可以在界面构建器标识检查器中为控制器
设置标识符答案 1 :(得分:1)
要在StoryBoard中找到标识符,请单击UIViewController,在属性检查器下,您应该看到一个名为Identifier的字段。那是你的" xxx"。