Note that there are some explanatory texts on larger screens.

plurals
  1. POIOS Switch view and storyboard not works
    primarykey
    data
    text
    <p>I have a problem with switching views. I'm using a simulator with xcode 4.2</p> <p>Storyboard contains:</p> <ul> <li><code>NavigationController</code> (initial view controller)<br /></li> <li><code>UIViewController</code> which has relationship with the navigation controller<br /></li> <li><code>UIViewController</code> (paired with my custom class: <code>ViewEntryImageController</code>) which hasn't got any relationship. Contains a button, a bottom toolbar with some toolbar button.</li> </ul> <p>User come into the <code>UIViewController</code>, where he can see a <code>ScrollView</code> and in <code>ScrollView</code> some images.</p> <p>Images has a gesture:</p> <pre><code> UITapGestureRecognizer *recognizer=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(openEntryImage)]; [image addGestureRecognizer:recognizer]; [recognizer release]; </code></pre> <p>The openEntryImage function:</p> <pre><code>(IBAction)openEntryImage { ViewEntryImageController *controller=[[ViewEntryImageController alloc]initWithNibName:nil bundle:nil]; controller.modalTransitionStyle=UIModalTransitionStyleCrossDissolve; [self presentModalViewController:controller animated:YES]; [controller release]; } </code></pre> <p>When I try to tap the image, the <code>openEntryImage</code> works as well (the effect is correct), but I don't see my <code>ViewEntryImageController</code> view and my buttons, I'm only see a black window.</p> <p>I try to put a <strong>NSLog</strong> line into the <code>ViewEntryImageController</code> <code>viewDidLoad</code> function, and it works, so what is the black window and where is my view controller?</p> <p>When I try to use <code>pushViewController</code>, on the new view I found a navigation toolbar with a back button, but no other controls.</p> <p>I tried another version, I created a <code>UIViewController</code> class, but now with a <strong>xib</strong> file. I used it instead of <code>ViewEntryImageController</code> and it works. Why? I want to use this controller in storyboard too.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload