SlideShare a Scribd company logo
Layout with Stack View, Table View, and Collection View
MORE LAYOUT OPTIONS
UIStackView, UIScrollView, UITableView, UICollectionView
AGENDA
UIStackView
UIScrollView
UITableView
UICollectionView
UISTACKVIEW
UISTACKVIEW
Layout mechanism similar to CSS Flexbox [1]
Better than Auto Layout for dynamic layouts
New in iOS 9
[1] Mozilla Documentation: Using CSS flexible boxes
UISTACKVIEW
Position of views in UIStackView is
determined by:
axis: horizontal
distribution: fill
alignment: center
spacing: 10
UISTACKVIEW
Instead of using constraints, stack different
UIStackViews to build layout:
UISTACKVIEW [2]
Layout is re-calculated when views are
hidden or added
Try to build interface with UIStackView, add
explicit constraints only when necessary
[2] UIStackView class reference
UISCROLLVIEW
UISCROLLVIEW
Allows to display
content that is larger
than screen size
User can scroll,
zoom, etc to view
the entire content
UISCROLLVIEW
UITableView and UICollectionView use
UIScrollView internally
UITABLEVIEW
UITABLEVIEW
Use for list content, where
amount of elements could be
arbitrary large
Ideal for uniform content
UITABLEVIEW
Can be difficult to handle cells with different heights
With iOS 8 + Auto Layout us self-sizing cells, but they
can be tricky to implement [3]
Alternative: tableView:heightForRowAtIndexPath:
in UITableViewDelegate and calculate cell height
manually
[3] Brief Tutorial on self sizing cells in iOS 8
UICOLLECTIONVIEW
UICOLLECTIONVIEW
Similar to UITableView but
provides flexible, non-linear
layout
Example: Filter selection from
Makestagram project [4]
[4] UICollectionView implementation in Makestagram Project
UICOLLECTIONVIEW
Provides default flow layout [5]
Allows to implement custom layouts [6], [7]:
[5] Appled Docs: Using the Flow Layout
[6] Apple Docs: Creating Custom Layouts
[7] Talk: Beyond the Grid — Creating Unique, High Performance Interfaces With UICollectionView

More Related Content

PDF
SpotBugs(FindBugs)による 大規模ERPのコード品質改善
PPTX
PostgreSQLのソース・ターゲットエンドポイントとしての利用
PPTX
Keeping Your Kubernetes Cluster Secure
PDF
MongoDB Performance Tuning
PPTX
GraalVM を普通の Java VM として使う ~クラウドベンチマークなどでの比較~
PDF
DDS Serie 6 exercices
PDF
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster
PDF
Quarkus入門
SpotBugs(FindBugs)による 大規模ERPのコード品質改善
PostgreSQLのソース・ターゲットエンドポイントとしての利用
Keeping Your Kubernetes Cluster Secure
MongoDB Performance Tuning
GraalVM を普通の Java VM として使う ~クラウドベンチマークなどでの比較~
DDS Serie 6 exercices
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster
Quarkus入門

What's hot (19)

PPTX
MySQLのソース・ターゲットエンドポイントとしての利用
PDF
MySQL Database Architectures - High Availability and Disaster Recovery Solution
PPTX
2021年10月26日 Qlik Sense SaaS vs Client Managed徹底比較
PPTX
Qlik ReplicateにおけるExpression Builderの利用方法
PDF
MySQL 8 High Availability with InnoDB Clusters
PDF
Oracle Cloud Infrastructure:2023年4月度サービス・アップデート
PDF
MySQL InnoDB Cluster / ReplicaSet - Making Provisioning & Troubleshooting as ...
PDF
Galera Cluster 4 for MySQL 8 Release Webinar slides
PPTX
双方向レプリケーションの(Bidirectional Replication)の利用方法
PPTX
V$SQLとその周辺でER図を描いてみよう!
PDF
スケールアップファーストのNoSQL、ScyllaDB(スキュラDB)
PDF
はじめてのOracle Cloud Infrastructure (Oracle Cloudウェビナーシリーズ: 2021年8月11日)
PDF
Ansible ではじめる ネットワーク自動化(Ansible 2.9版)
PDF
MySQLを割と一人で300台管理する技術
PDF
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2021年7月版]
PDF
DDS Serie 1 exercices
PPTX
Qlik Tips 20210525 画面からの入力機能
PDF
まだ統計固定で消耗してるの? - Bind Peek をもっと使おうぜ! 2015 Edition -
PPTX
MySQLの運用でありがちなこと
MySQLのソース・ターゲットエンドポイントとしての利用
MySQL Database Architectures - High Availability and Disaster Recovery Solution
2021年10月26日 Qlik Sense SaaS vs Client Managed徹底比較
Qlik ReplicateにおけるExpression Builderの利用方法
MySQL 8 High Availability with InnoDB Clusters
Oracle Cloud Infrastructure:2023年4月度サービス・アップデート
MySQL InnoDB Cluster / ReplicaSet - Making Provisioning & Troubleshooting as ...
Galera Cluster 4 for MySQL 8 Release Webinar slides
双方向レプリケーションの(Bidirectional Replication)の利用方法
V$SQLとその周辺でER図を描いてみよう!
スケールアップファーストのNoSQL、ScyllaDB(スキュラDB)
はじめてのOracle Cloud Infrastructure (Oracle Cloudウェビナーシリーズ: 2021年8月11日)
Ansible ではじめる ネットワーク自動化(Ansible 2.9版)
MySQLを割と一人で300台管理する技術
【旧版】Oracle Exadata Cloud Service:サービス概要のご紹介 [2021年7月版]
DDS Serie 1 exercices
Qlik Tips 20210525 画面からの入力機能
まだ統計固定で消耗してるの? - Bind Peek をもっと使おうぜ! 2015 Edition -
MySQLの運用でありがちなこと
Ad

Viewers also liked (20)

PDF
Cocoa勉強会#56-小ネタ集あなたの常識はすでに通用しない
PDF
Client Server Security with Flask and iOS
PDF
iOS Layout Overview
PDF
Building a Backend with Flask
PDF
Localization and Accessibility on iOS
PDF
Advanced Core Data
PDF
Persistence on iOS
PDF
Make School 2017 - Mastering iOS Development
PDF
Intro to Core Data
PDF
Standard libraries on iOS
PDF
Error Handling in Swift
PDF
Multithreading on iOS
PDF
Intro to iOS Application Architecture
PDF
Distributing information on iOS
PDF
Client Server Communication on iOS
PDF
Swift Objective-C Interop
PDF
Swift 2 intro
PDF
Xcode Project Infrastructure
PDF
Dependency Management on iOS
PDF
Client Server Synchronization iOS
Cocoa勉強会#56-小ネタ集あなたの常識はすでに通用しない
Client Server Security with Flask and iOS
iOS Layout Overview
Building a Backend with Flask
Localization and Accessibility on iOS
Advanced Core Data
Persistence on iOS
Make School 2017 - Mastering iOS Development
Intro to Core Data
Standard libraries on iOS
Error Handling in Swift
Multithreading on iOS
Intro to iOS Application Architecture
Distributing information on iOS
Client Server Communication on iOS
Swift Objective-C Interop
Swift 2 intro
Xcode Project Infrastructure
Dependency Management on iOS
Client Server Synchronization iOS
Ad

Similar to Layout with Stack View, Table View, and Collection View (20)

PDF
Introducing collection views - Mark Pospesel
PDF
UIStackView – Tom Bowden – Dec 2015 – Eventacular Inc
PDF
Manual Layout Revisited
PDF
UIStackView : More than an Introduction
PDF
intive - UICollectionView custom layouts
PDF
Understanding stack views
PDF
Advanced collection views
PDF
MOPCON 2014 - Best software architecture in app development
PDF
Lviv MD Day 2015 Костянтин Бичков "iOS Autolayouts – це добре!"
PDF
Auto Layout Under Control @ Pragma conference 2013
PDF
Adjusting to Auto Layout (Tutorial / Tips for iOS Auto Layout)
PDF
Swift
PDF
Auto Layout Priorities - CocoaConf 2016 Seattle
DOCX
Beginning iOS 7 Development Exploring the iOS SDKby Jack .docx
DOCX
Beginning iOS 7 Development Exploring the iOS SDKby Jack .docx
PDF
Intro to UIKit • Made by Many
PDF
(Even more) Rapid App Development with RubyMotion
PDF
Autolayout primer
PDF
Scroll views
PDF
iOS 上 self-sizing cell 的過去、現在、與未來
Introducing collection views - Mark Pospesel
UIStackView – Tom Bowden – Dec 2015 – Eventacular Inc
Manual Layout Revisited
UIStackView : More than an Introduction
intive - UICollectionView custom layouts
Understanding stack views
Advanced collection views
MOPCON 2014 - Best software architecture in app development
Lviv MD Day 2015 Костянтин Бичков "iOS Autolayouts – це добре!"
Auto Layout Under Control @ Pragma conference 2013
Adjusting to Auto Layout (Tutorial / Tips for iOS Auto Layout)
Swift
Auto Layout Priorities - CocoaConf 2016 Seattle
Beginning iOS 7 Development Exploring the iOS SDKby Jack .docx
Beginning iOS 7 Development Exploring the iOS SDKby Jack .docx
Intro to UIKit • Made by Many
(Even more) Rapid App Development with RubyMotion
Autolayout primer
Scroll views
iOS 上 self-sizing cell 的過去、現在、與未來

Recently uploaded (20)

PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
System and Network Administraation Chapter 3
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
AI in Product Development-omnex systems
PPTX
ai tools demonstartion for schools and inter college
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Digital Strategies for Manufacturing Companies
PPTX
Introduction to Artificial Intelligence
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Essential Infomation Tech presentation.pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Wondershare Filmora 15 Crack With Activation Key [2025
Operating system designcfffgfgggggggvggggggggg
System and Network Administraation Chapter 3
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
AI in Product Development-omnex systems
ai tools demonstartion for schools and inter college
Which alternative to Crystal Reports is best for small or large businesses.pdf
Digital Strategies for Manufacturing Companies
Introduction to Artificial Intelligence
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Design an Analysis of Algorithms II-SECS-1021-03
wealthsignaloriginal-com-DS-text-... (1).pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PTS Company Brochure 2025 (1).pdf.......
Reimagine Home Health with the Power of Agentic AI​
L1 - Introduction to python Backend.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Essential Infomation Tech presentation.pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design

Layout with Stack View, Table View, and Collection View