Xcode 6 - Swift - Multiple Views on Cocoa Single Line Storyboard

Last week I decided to plunge into the world of Swift and Xcode development, and as of yesterday I am actively working on a new application. I have a lot of experience with Java Swing, but working with it is obviously much different than working with developers of fantastic interfaces and Apple storyboards.

I am trying to develop a single-window application that has many different types that can be moved using buttons. I tried to wrap my head around how the storyboard works, but even after I read the documentation, I don’t know what I am doing - I am so used to working in hard code. He went so far as to write the entire network layer of the application in order to avoid working with the interface.

Basically, I have a set of different NSViewControllers, each of which refers to several of its components (buttons, labels, etc.), and I want certain buttons to be able to change the current view controller (preferably using segue animation) to another. How can I approach this? I would suggest that this is not difficult to achieve, but I am lost. Any help would be appreciated!

Let me know if I need to send any code - I have base classes, but nothing related to this.

Thanks, -Aidan

+6
source share

Source: https://habr.com/ru/post/979018/


All Articles