Mac Cocoa |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Nov 13, 2015 10:48 pm Post subject: AutoLayout & Adaptive Layout |
|
|
so - xCode 6 beta 7: storyboard adds extra space on right and left sides
"iOS 8 adds the concept of 'content margins' to UIView. The "Whats New
in Cocoa Touch" video from WWDC 2014 discusses content margins (under
the title Adaptive Margins) starting at about 12m30s.
The default margins are 8 points on each side. Each end of a layout constraint
can be relative to a view's margin instead of to the view's true edge
(use File > Open Quickly to go to the definition of NSLayoutAttribute to see the
possibilities)."
Last edited by delovski on Wed Aug 02, 2017 4:22 pm; edited 1 time in total |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Nov 14, 2015 8:47 pm Post subject: |
|
|
flaviocaetano - Autolayout Is Hell on Earth
"After spending a few hours trying to find the root of the problem with a
couple of friends (we even considered the problem being the SDK's dequeue
thanks to Profiler) some inspired insight hit us and we decided to disable
autolayout on the UICollectionViewCell's xib and everything flowed like a
beautiful stream under the morning sunlight of tropical woods." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Apr 10, 2017 11:28 am Post subject: |
|
|
digitalleaves.com - The Ultimate Guide to Autolayout
"This is a series of tutorials to help you become an AutoLayout expert. In
the first episode, we will start by mastering the basics. AutoLayout is a set
of rules that dictate how the visual elements of an iOS App display on iOS
devices. "
second part - The Ultimate Guide to iOS AutoLayout (2)
"To illustrate the problem with absolute offsets and sizes, we will use a
sample app that mimics a social network profile for a user. Maybe the
designer in our team gives us some initial designs, depicting how the
application looks in an iPhone 7Plus." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Apr 26, 2017 4:46 pm Post subject: |
|
|
r - Making interfaces using Interface Builder vs. fully programmatically
"I used to only code interfaces programmatically, but then I started before IB
was a thing. It was hard to switch. But I feel with all the varying screen sizes
now, you just have to use IB and auto layout if you are building apps to run on
all devices. Especially with the split screens in the new iPads. It's just too much
hassle anymore to do it in code." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Apr 27, 2017 7:21 pm Post subject: |
|
|
r - iOS tutorials for building apps without storyboard
"App Without Storyboard
This is just the steps to delete the story board and make your app run. After
that I use the Cartography framework to layout my screens." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Aug 02, 2017 4:22 pm Post subject: |
|
|
rw - Adaptive Layout Tutorial in iOS 11: Getting Started
"The introduction of Adaptive Layout caused a huge paradigm shift for iOS app
designers. When designing your app, you can now create a single layout, which
works on all current iOS devices - without crufty platform-specific code!" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Fri Dec 01, 2017 11:37 pm Post subject: |
|
|
rw - Development Tutorial for iPhone X
"If you're new to auto layout, or just need to brush up, check out our tutorial
and video course:
Auto Layout Tutorial in iOS 11: Getting Started: Updated to iOS 11, Xcode 9
and Swift 4, but pre-iPhone X-announcement.
Beginning Auto Layout video course: At the time of writing this tutorial, this
video course was up-to-date for iOS 10, Xcode 8 and Swift 3.
Adaptive Layout Tutorial in iOS 11: Getting Started: Updated to iOS 11, Xcode
9 and Swift 4, but pre-iPhone X-announcement. Create a single layout that
works on all iOS devices, without platform-specific code. Adaptive layout will
also look good on future devices that haven't even been released yet." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Thu Oct 25, 2018 11:37 pm Post subject: |
|
|
https://pedrommcarrasco.github.io/posts/power-up-your-anchors/
Programmatically done Auto Layout is still the preferred way of implementing views by a lot of developers. While there amazing open-source frameworks, most of them differ from Apple's anchor syntax. Therefore, by adding them to your project, you'll raise the entry level complexity of your project and increase its learning curve. In this article, you'll learn how to avoid adding an external dependency and create your own layer above NSLayoutAnchor to solve some of its issues. |
|
Back to top |
|
|
|