<tfoot id='ADO4X'></tfoot>
  • <small id='ADO4X'></small><noframes id='ADO4X'>

    <legend id='ADO4X'><style id='ADO4X'><dir id='ADO4X'><q id='ADO4X'></q></dir></style></legend>
      <i id='ADO4X'><tr id='ADO4X'><dt id='ADO4X'><q id='ADO4X'><span id='ADO4X'><b id='ADO4X'><form id='ADO4X'><ins id='ADO4X'></ins><ul id='ADO4X'></ul><sub id='ADO4X'></sub></form><legend id='ADO4X'></legend><bdo id='ADO4X'><pre id='ADO4X'><center id='ADO4X'></center></pre></bdo></b><th id='ADO4X'></th></span></q></dt></tr></i><div id='ADO4X'><tfoot id='ADO4X'></tfoot><dl id='ADO4X'><fieldset id='ADO4X'></fieldset></dl></div>

          <bdo id='ADO4X'></bdo><ul id='ADO4X'></ul>
      1. 如何在情节提要中创建 UIViewController 布局,然后

        时间:2023-05-31

              <small id='xKxjZ'></small><noframes id='xKxjZ'>

                <tbody id='xKxjZ'></tbody>
                <bdo id='xKxjZ'></bdo><ul id='xKxjZ'></ul>
              • <legend id='xKxjZ'><style id='xKxjZ'><dir id='xKxjZ'><q id='xKxjZ'></q></dir></style></legend>

                <tfoot id='xKxjZ'></tfoot>

                  <i id='xKxjZ'><tr id='xKxjZ'><dt id='xKxjZ'><q id='xKxjZ'><span id='xKxjZ'><b id='xKxjZ'><form id='xKxjZ'><ins id='xKxjZ'></ins><ul id='xKxjZ'></ul><sub id='xKxjZ'></sub></form><legend id='xKxjZ'></legend><bdo id='xKxjZ'><pre id='xKxjZ'><center id='xKxjZ'></center></pre></bdo></b><th id='xKxjZ'></th></span></q></dt></tr></i><div id='xKxjZ'><tfoot id='xKxjZ'></tfoot><dl id='xKxjZ'><fieldset id='xKxjZ'></fieldset></dl></div>

                1. 本文介绍了如何在情节提要中创建 UIViewController 布局,然后在代码中使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我的 iOS 5 应用程序中有一个 Storyboard.

                  I have a Storyboard in my iOS 5 application.

                  在那里我创建了许多屏幕,并且效果很好.

                  In there I have created a number of screens and it works perfectly.

                  但是,我在代码中创建了一个视图控制器,不是作为 UI 操作的结果,而是在处理数据结束时.然后,我想将这个视图控制器显示为 modalViewController,但也要在情节提要编辑器中设计它.

                  However there's one view controller that I create in code, not as a result of UI action but at the end of processing data. I would like to show this view controller then, as a modalViewController, but also have it designed in the storyboard editor.

                  有可能吗?使用笔尖我是这样做的:

                  Is it possible? Using the nibs I did it like this:

                  ResultsController *rc = [[ResultsController alloc] initWithNibName:@"ResultsController"
                                                                              bundle:nil];
                  [self.navigationController presentModalViewController:rc animated:YES];
                  [rc release];
                  

                  现在我真的没有 nib 文件,我该怎么做呢?

                  Right now I don't really have a nib files, so how do I do it?

                  推荐答案

                  看看 UIStoryboard 类.有一个 instantiateViewControllerWithIdentifier 方法.因此,您需要在 Storyboard Editor 中为 ResultsController ViewController 设置 Identfier.

                  Take a look at the UIStoryboard class. There is a instantiateViewControllerWithIdentifier Method. So you need to set the Identfier within the Storyboard Editor for your ResultsController ViewController.

                  你可以这样做

                  UIViewController *viewController = 
                     [[UIStoryboard storyboardWithName:@"MainStoryboard" 
                                                bundle:NULL] instantiateViewControllerWithIdentifier:@"ResultsController"];
                  
                  [self presentModalViewController:viewController animated:NO];
                  

                  这篇关于如何在情节提要中创建 UIViewController 布局,然后在代码中使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:支持 iPhone4 和 iPhone5 屏幕分辨率的最佳方式是什 下一篇:使用 UITableView 和 NSOrderedSet 对核心数据进行排序

                  相关文章

                  最新文章

                  • <bdo id='dT446'></bdo><ul id='dT446'></ul>

                  <small id='dT446'></small><noframes id='dT446'>

                  <i id='dT446'><tr id='dT446'><dt id='dT446'><q id='dT446'><span id='dT446'><b id='dT446'><form id='dT446'><ins id='dT446'></ins><ul id='dT446'></ul><sub id='dT446'></sub></form><legend id='dT446'></legend><bdo id='dT446'><pre id='dT446'><center id='dT446'></center></pre></bdo></b><th id='dT446'></th></span></q></dt></tr></i><div id='dT446'><tfoot id='dT446'></tfoot><dl id='dT446'><fieldset id='dT446'></fieldset></dl></div>
                  1. <tfoot id='dT446'></tfoot>

                      <legend id='dT446'><style id='dT446'><dir id='dT446'><q id='dT446'></q></dir></style></legend>