I'm trying to use a navigation controller for an identification process in my swift code but each time I click on a button that leads to it, it shows the following black screen:
Here is my storyboard if this can helps, there is no warning and no error in the code (using a drag and drop segue or a programmatically one leads to the same black screen)
Probably the segue
you picked: mode & transition.
Are you certain you only have a single segue
? It is possible to have overlapping segues, which do not show up clearly in Interface Builder.
Edit
Is there a way we can see all our segues?
Segues
are listed at the bottom. You can inspect Identifier and Segue in the Attribute Inspector. Sounds, I was doing the wrong way (drag a nav controller, delete the table view, add a new View controller and make the segue), but now if I create a view, and then I embed it in a navigation controller it sounds it works ! Anyway, thanks a lot for your help, this definitely helps me !
I got this when I assigned a custom view to self.view
in viewDidLoad:
.
self.view = self.mapView
Adding mapView as a subview of self.view
solved this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.