iOS 8 時代の 
UISplitViewController 
2014.10.3 
クラスメソッド株式会社 
田宮 宙比己
自己紹介 
• 田宮 宙比己 (たみや ときひこ) 
• @Cocominap 
• クラスメソッド株式会社 
• AWS & iOS
様々なデバイス 
様々な画面サイズ
そこで
Adaptive
Size Class
Size Class 
Regular 
Compact
Regular Compact 
Regular 
Compact 
Horizontal 
Vertical 
iPad 
Apple 
Watch?
iPhone 5s / 6 
Regular 
Compact 
Portrait 
Horizontal 
Vertical
iPhone 5s / 6 
Regular 
Compact Landscape 
Horizontal 
Vertical
traitCollection
プロパティ 
// UITraitCollection.h 
! 
UIUserInterfaceSizeClass horizontalSizeClass; 
UIUserInterfaceSizeClass verticalSizeClass; 
UIUserInterfaceIdiom userInterfaceIdiom; 
CGFloat displayScale;
enum 
// UIInterface.h 
! 
typedef NS_ENUM(NSInteger, 
UIUserInterfaceSizeClass) { 
UIUserInterfaceSizeClassUnspecified = 0, 
UIUserInterfaceSizeClassCompact = 1, 
UIUserInterfaceSizeClassRegular = 2, 
} NS_ENUM_AVAILABLE_IOS(8_0);
- (void)traitCollectionDidChange:(UITraitCollection 
*)previousTraitCollection 
{ 
NSLog(@"[previous] n %@", 
previousTraitCollection); 
NSLog(@"[now] n %@", self.traitCollection); 
} 
NSLog
previousTraitCollection 
_UITraitNameUserInterfaceIdiom = Phone, 
_UITraitNameDisplayScale = 2.000000, 
_UITraitNameHorizontalSizeClass = Compact, 
_UITraitNameVerticalSizeClass = Regular, 
_UITraitNameTouchLevel = 0, 
_UITraitNameInteractionModel = 1 
iPhone5 
NSLog
self.traitColletction 
_UITraitNameUserInterfaceIdiom = Phone, 
_UITraitNameDisplayScale = 2.000000, 
_UITraitNameHorizontalSizeClass = Compact, 
_UITraitNameVerticalSizeClass = Compact, 
_UITraitNameTouchLevel = 0, 
_UITraitNameInteractionModel = 1 
iPhone5 
NSLog
UISplitViewController
iOS 8時代のUISplitViewController
Regular 
Compact
iPad 
(Landscape)
iOS 8時代のUISplitViewController
iPhone 5s 
(Landscape)
iOS 8時代のUISplitViewController
iPhone 6 
(Landscape)
iOS 8時代のUISplitViewController
iPhone 6 Plus 
(Landscape)
iOS 8時代のUISplitViewController
実装にどう活かす
• 回転の検知 
• didRotateFromInterfaceOrientation:
画面状況に最適な 
UIを提供できる
8%7% 
10% 
11% 
29% 
35% 
This is test text of what I think 
of my This is a test text of what I 
think 
of my This is a test text of what I 
think 
of my This is a test text of what I 
think 
of my 1908 
8%7% 
10% 
11% 
35% 
29% 
This is test text of what I think 
of my This is a test text of what I think 
of my This is a test text of what I think 
of my This is a test text of what I think 
of my 1908 
Graph 1 
Graph 1 
Graph 2 
Graph 3 
Graph 4 
Graph1
エンジニアを募集中 
Android 
クラスメソッド検索
ありがとうございました

More Related Content

PDF
Size Classes
ODP
основы ооп
PDF
UIPageViewControllerとContainerViewでこんな見た目を実現するTips
PDF
(旧版) オープンソースライセンスの基礎と実務
PPTX
AKIBA.swift vol.1
PDF
LaunchKit
PDF
iOS におけるサウンド処理2015
PDF
UIKit Sound
Size Classes
основы ооп
UIPageViewControllerとContainerViewでこんな見た目を実現するTips
(旧版) オープンソースライセンスの基礎と実務
AKIBA.swift vol.1
LaunchKit
iOS におけるサウンド処理2015
UIKit Sound

Recently uploaded (20)

PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPT
What is a Computer? Input Devices /output devices
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
The various Industrial Revolutions .pptx
PPT
Geologic Time for studying geology for geologist
PDF
Getting Started with Data Integration: FME Form 101
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Architecture types and enterprise applications.pdf
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
A review of recent deep learning applications in wood surface defect identifi...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Assigned Numbers - 2025 - Bluetooth® Document
What is a Computer? Input Devices /output devices
Hindi spoken digit analysis for native and non-native speakers
Zenith AI: Advanced Artificial Intelligence
The various Industrial Revolutions .pptx
Geologic Time for studying geology for geologist
Getting Started with Data Integration: FME Form 101
A comparative study of natural language inference in Swahili using monolingua...
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
CloudStack 4.21: First Look Webinar slides
Enhancing emotion recognition model for a student engagement use case through...
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
O2C Customer Invoices to Receipt V15A.pptx
Architecture types and enterprise applications.pdf
observCloud-Native Containerability and monitoring.pptx
1 - Historical Antecedents, Social Consideration.pdf
Hybrid model detection and classification of lung cancer
A review of recent deep learning applications in wood surface defect identifi...
Ad
Ad

iOS 8時代のUISplitViewController