iOS 8時代のUISplitViewController
-
Upload
cocominap -
Category
Technology
-
view
301 -
download
2
description
Transcript of iOS 8時代のUISplitViewController
![Page 1: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/1.jpg)
iOS 8 時代の UISplitViewController
2014.10.3 クラスメソッド株式会社
田宮 宙比己
![Page 2: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/2.jpg)
自己紹介
• 田宮 宙比己 (たみや ときひこ)
• @Cocominap
• クラスメソッド株式会社
• AWS & iOS
![Page 3: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/3.jpg)
様々なデバイス 様々な画面サイズ
![Page 4: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/4.jpg)
そこで
![Page 5: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/5.jpg)
Adaptive
![Page 6: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/6.jpg)
Size Class
![Page 7: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/7.jpg)
Regular
Compact
Size Class
![Page 8: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/8.jpg)
Regular Compact
Regular
Compact
Horizontal
Vertical
iPad
Apple Watch?
![Page 9: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/9.jpg)
iPhone 5s / 6
Regular
Compact
Portrait
Horizontal
Vertical
![Page 10: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/10.jpg)
iPhone 5s / 6Regular
Compact Landscape
Horizontal
Vertical
![Page 11: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/11.jpg)
traitCollection
![Page 12: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/12.jpg)
プロパティ// UITraitCollection.h !
UIUserInterfaceSizeClass horizontalSizeClass; UIUserInterfaceSizeClass verticalSizeClass; UIUserInterfaceIdiom userInterfaceIdiom; CGFloat displayScale;
![Page 13: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/13.jpg)
enum// UIInterface.h !
typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) { UIUserInterfaceSizeClassUnspecified = 0, UIUserInterfaceSizeClassCompact = 1, UIUserInterfaceSizeClassRegular = 2, } NS_ENUM_AVAILABLE_IOS(8_0);
![Page 14: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/14.jpg)
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection { NSLog(@"[previous] \n %@", previousTraitCollection); NSLog(@"[now] \n %@", self.traitCollection); }
NSLog
![Page 15: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/15.jpg)
previousTraitCollection
_UITraitNameUserInterfaceIdiom = Phone, _UITraitNameDisplayScale = 2.000000, _UITraitNameHorizontalSizeClass = Compact, _UITraitNameVerticalSizeClass = Regular, _UITraitNameTouchLevel = 0, _UITraitNameInteractionModel = 1
iPhone5
NSLog
![Page 16: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/16.jpg)
self.traitColletction
_UITraitNameUserInterfaceIdiom = Phone, _UITraitNameDisplayScale = 2.000000, _UITraitNameHorizontalSizeClass = Compact, _UITraitNameVerticalSizeClass = Compact, _UITraitNameTouchLevel = 0, _UITraitNameInteractionModel = 1
iPhone5
NSLog
![Page 17: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/17.jpg)
UISplitViewController
![Page 18: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/18.jpg)
![Page 19: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/19.jpg)
CompactRegular
![Page 20: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/20.jpg)
iPad (Landscape)
![Page 21: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/21.jpg)
![Page 22: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/22.jpg)
iPhone 5s (Landscape)
![Page 23: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/23.jpg)
![Page 24: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/24.jpg)
iPhone 6 (Landscape)
![Page 25: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/25.jpg)
![Page 26: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/26.jpg)
iPhone 6 Plus (Landscape)
![Page 27: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/27.jpg)
![Page 28: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/28.jpg)
実装にどう活かす
![Page 29: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/29.jpg)
• 回転の検知
• didRotateFromInterfaceOrientation:
![Page 30: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/30.jpg)
画面状況に最適な UIを提供できる
![Page 31: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/31.jpg)
7%8%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
7%8%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
Graph 1Graph 1Graph 2
Graph 3
Graph 4
Graph1
![Page 32: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/32.jpg)
エンジニアを募集中
クラスメソッド 検索
Android
![Page 33: iOS 8時代のUISplitViewController](https://reader033.fdocument.pub/reader033/viewer/2022051514/5495bea1b47959744d8b4e6b/html5/thumbnails/33.jpg)
ありがとうございました