Fragments 2017

Fragments 2017

A conference on the mobile ecosystem in India

Anshuman Srivastava

@anshumansrivastava

Think twice before writing code to manipulate UI - Exploiting Autolayout

Submitted Jun 14, 2017

For all mobile developers out there, we know the pain in manipulating and assigning constraints at runtime. Many of us end up wasting our precious time and energy in making screens to please our Designers. I have seen experienced iOS developers not utilising full power of XIBs/Storyboards.

This talk is for anyone who wants to learn advanced tricks and tips to utilize the Autolayout features and start creating even complex screens in a matter of minutes.
With introduction of Constraint layout in Android, this talk will be helpful for Android developers to get started on it.

Outline

  • Introduction and Basics of AutoLayout
  • Never assign width to Labels!
  • The power of setting Priorities to constraints.
  • Create wrapper UIViews for you smaller components.
  • Using Content Hugging and Compression resistance to your advantages.
  • Using UITableView cell Automatic dimensions correctly.
  • Examples and Demos.
  • Miscellaneous tips and tricks.

Requirements

Basic understanding of creating UI on any platform.

Speaker bio

Anshuman Srivastava is an iOS developer with experience of working on Large Scale apps. He has worked in Snapdeal and Freecharge and is currently hacking in GoJek, the hottest startup of Southeast Asia. He is writing fully testable apps that handle Lakhs of sessions everyday with 99+ %age average crashfree session.

You can connect with him on LinkedIn: https://www.linkedin.com/in/justanshuman/

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

How do you make a great mobile experience? Explore with Fragments. Follow Fragments on Twitter more