Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

view controller is showing blank in storyboard

I have copied a view controller from one project to another . but after that it is showing blank.

enter image description here

and I have also tried this ...

enter image description here

any suggestion?

like image 632
Deepti Raghav Avatar asked Nov 07 '17 09:11

Deepti Raghav


People also ask

How do I embed a view controller in navigation controller storyboard?

In your storyboard, select the initial view controller in your hierarchy. With this view controller selected, choose the menu item Editor -> Embed In -> Navigation Controller .

Why is Main storyboard not showing up in Xcode?

You have SwiftUI enabled in your project, which does not use storyboards anymore. Your layout is inside the ContentView. swift file. If you do want to work the old way, with storyboards, you should uncheck 'Use SwiftUI' in the project creation screen.

How do I load a view view controller?

Add views to your view controller To that root view, you add the custom views you need to present your interface. In storyboards, you add views by dragging them onto the view controller scene. For example, the following figure shows a view controller with an image view and button on an iPhone.


1 Answers

I solved this by using this way

Storyboard -> Attribute inspector -> simulator size -> Fixed

like image 73
Deepti Raghav Avatar answered Sep 18 '22 20:09

Deepti Raghav