2

I'm having a very hard time here.

I created an iOS App in which I have a Navigation controller and a main screen showing a device list and now I'd like to add a detailed view. My issue is, I can't create a segue with action "Show" - the Interface Builds in Xcode only provides options "Push", "Modal" and "Custom"

I'm an absolute beginner in Swift (or for that Apple) development and each and every tutorial I found with google, says, I'd simply have to Ctrl-Click the button, drag it to the new view controller and choose "show" - but there is no :-(

I'm attaching a picture, so you might see more clearly. Screenshot trying to create action

Please, if someone could help me out here.

Is my problem caused by choosing Single View Application in the project???

I'm using Xcode 8, Swift 3 and developing for iOS 10 on iPhone

2
  • single view has nothing to do with your problem. do you have any breakpoints you may have accidentally placed?
    – Dylan
    Oct 27, 2016 at 13:36
  • turn on the size class to access to the full segues menus. @siliconchris
    – KAR
    Oct 27, 2016 at 13:40

1 Answer 1

2

You are likely using the old Xcode storyboard layout, to go back to modern layout:

select Main.storyboard, go to file inspector and check the Use Auto Layout and Use Trait Variations boxes.

enter image description here

4
  • OmG - can it be that easy? Why exactly is a fixed layout setting interfering with actions? As said, I'm a complete newbie Oct 27, 2016 at 14:25
  • Hey @ldan - this worked, but actually only after I also activated the second option "Use Trait Variations" also. Oct 27, 2016 at 14:36
  • You are right, Use Trait Variation is actually the source of your issue. These two do go together (edited the answer). As to why? I'm not sure, I think it's just the way Xcode evolved (maybe different question).
    – Idan
    Oct 27, 2016 at 14:51
  • The icon to select as shown in the image is correct, however it is called 'file inspector' not 'identity inspector'
    – Pigpocket
    Aug 14, 2018 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.