Tag: Auto Layout
Posted on December 12, 2018
by Steven Lipton
Leave a Comment
You’ve probably seen menus that pop out of the side of an app, but do you know how to make one? With the knowledge of some simple code you too can add these to your application using auto layout. If you take a look… Continue Reading “Add an Animated Drawer”
Category: GUI, iOS Development Weekly Tips, LinkedIn Learning / Lynda.com, TutorialTags: animated drawer, animation, App Programming, Apple swift, Auto Layout, autolayout, GUI, ios, Options, swift, Tutorial, UI
Posted on September 18, 2017
by Steven Lipton
Leave a Comment
A few months ago, Apple threw out my app Interval Runcalc for being too old. While it wasn’t the most innovative, complex or profitable, it was an app I used frequently myself. It was a calculator for time, pace and distance for running not… Continue Reading “This Old App: Update to Xcode 9”
Category: Auto Layout and Size Classes, iOS 11, This Old App, Xcode 9Tags: @objc, App Programming, Apple swift, Auto Layout, ios11, iPhone Programming, iPhone X, layout, swift, Updating, Xcode 9
Posted on November 29, 2016
by Steven Lipton
1 Comment
A tech author’s work is never done. As soon as he or she completes manuscript and gets it published, the manuscript almost immediately becomes obsolete. In my case, Practical Autolayout for Xcode 8 went obsolete a day before I published, but I had no idea about… Continue Reading “Where is Update Frames in Xcode 8.1?”
Category: Swift ProgrammingTags: ambiguous, Auto Layout, autolayout, button, content hugging, frames, misalignment, missing, resolver, update, Xcode 8
Posted on June 30, 2016
by Steven Lipton
18 Comments
Modal views are one of the fundamental ways to present view controllers. Some early applications on the iPhone were completely modal views — some still do. Modals do not do their own housekeeping like navigation controllers or tab controllers, so they are not as… Continue Reading “Adding Modal Views and Popovers in Swift 3.0”
Category: iOS10, Swift, Swift Programming, TutorialTags: Auto Layout, identifier, modal, modal view, modal view in swift, mulitasking, popover, popover cgrect, popover in swift, popover inrect, segue, segue id, segues, Size classes, storyboard, storyboard ID, swift, Swift 3.0
Posted on November 11, 2015
by Steven Lipton
22 Comments
Some people don’t like Interface Builder and like to code instead. Sometimes your layout is so dynamic you need to lay out in code. In either case, programmatic layout of views becomes the answer instead of auto layout. In Xcode 7 Apple introduced stack… Continue Reading “How to Add Stack Views Programmatically and (almost) avoid AutoLayout”
Category: Auto Layout and Size Classes, GUI, iOS9, Swift, Swift Programming, Swift Swift, TutorialTags: Auto Layout, autolayout, stack view, swift, UIStackView
Posted on October 28, 2015
by Steven Lipton
6 Comments
If you hate auto layout, you may be surprised to learn Apple does too. In Xcode 7 Apple introduced a new way to work with constraints called stack views. Stacks are containers that keep views aligned automatically. Originally announced as a lazy man’s auto… Continue Reading “Why Stack Views Are Your Best Friend If You Hate Auto Layout”
Posted on June 25, 2015
by Steven Lipton
1 Comment
Apple messed up big time. They wanted a simple, powerful but flexible system to lay out buttons, labels, images and other objects on the storyboard. They wanted a way to make only one layout and have it work on any iOS device in any… Continue Reading “Practical Auto Layout: Are You Ready for iOS 9?”
Once a year, Apple developers get together in San Francisco. Some lucky people in person, most through on-line connections. The event is the World Wide Developer’s Confrence (WWDC), the event for those people and companies developing applications for OSX and iOS. As a developer,… Continue Reading “6 Themes to Expect at Apple’s WWDC 2015 No One is Talking About.”
Posted on May 19, 2015
by Steven Lipton
2 Comments
Flat User interfaces are a lie. They are not completely flat. One effect continues to be used with them to show depth: Shadows. In flat interfaces it can look like there are some views floating above others by the use of shadows. In this… Continue Reading “Swift Swift: How to Make a Drop Shadow in User Interfaces”
Category: GUI, ios8, Swift, Swift Swift, Tutorial, UncategorizedTags: Auto Layout, Autoalyout, CALayer, Drop Shadows, Drop Shaodws, Glow, ios, iOS 8, layer property, Shadow Radius, Shaodw Opacity, swift, Swift GUI, UIButton, UIbutton.layer
Posted on May 3, 2015
by Steven Lipton
2 Comments
For those who have worked a bit with auto layout, there are two topics that seems to be a real challenge: using a custom UIView, especially when using Core Graphics , and displaying photos either in the foreground or as a background. Both suffer… Continue Reading “Swift Swift: Making Background Images, Small Images and Custom UIViews with Autolayout”
Category: Auto Layout and Size Classes, Core Graphics, GUI, ios8, Swift Swift, TutorialTags: aspect fill, aspect ratio, aspect ratio constraint, Auto Layout, auto layout background, auto re-size photo, auto rotation, autorotation, Core Graphics, launch screen, launch screen photo, launchscreen.xib, photos, swift, Swift Programming Language, UIImage autolayout