Record Detail Back
Swift OS X Programming for Absolute Beginners
Every program’s user interface is crucial to letting users control a program. It doesn’t matter how powerful your program may be if the user interface frustrates users and discourages them from using the program. Since every user interface needs to respond to changes the user might make to the size of a window, stack views let you group related items together and apply constraints on that entire stack view. Without grouping related items together, you would have to apply constraints to each item individually, which could get messy and be difficult to fix if they don’t respond the way you expect. If you have constraint conflicts, you can modify priorities of each constraint and/or modify how a constraint works. When you create a constraint initially, Xcode makes the constraint equal to a fixed value. To provide flexibility, you can change this equal sign to a greater than or equal, or less than or equal sign. To keep your user interface items visible, you can also apply compression constraints. Unlike ordinary constraints that link an item to another item or the edge of a window, a compression constraint defines the width and/or height of a user interface item. Compression constraints keep user interface items from disappearing if the user resizes a window. For designing user interfaces that display windows or views in a specific order, you might find storyboard files easier to use than multiple .xib files. Rather than store your entire user interface in a single storyboard file (which can get cluttered and hard to understand), you can create storyboard references.
Wallace Wang - Personal Name
978-1-4842-1233-2
NONE
Information Technology
English
2015
1-557
LOADING LIST...
LOADING LIST...