Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Kei Ito
2,465 views
20150930 3D Touchを試す
関西モバイルアプリ研究会 #6 「3D Touchを試す」の資料です
Software
◦
Read more
3
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 14
2
/ 14
3
/ 14
4
/ 14
5
/ 14
6
/ 14
7
/ 14
8
/ 14
9
/ 14
10
/ 14
11
/ 14
12
/ 14
13
/ 14
14
/ 14
More Related Content
PDF
20151130 Apple Pencilを使う
by
Kei Ito
PDF
Can we live in a pure Swift world?
by
toyship
PDF
バグのことは嫌いになってもXcodeのことは嫌いにならないでください。
by
Daisuke Yamashita
PDF
20161014 vrarmr勉強会発表資料 slideshare
by
WheetTweet
PDF
3D touch for iOS
by
toyship
PPTX
スマートフォンサイトデザインに求められるUI/UX設計術
by
Kouichi Kuriyama
PDF
20161125 Unity-Android連携の発表資料
by
WheetTweet
PDF
Meta2を動かしてみたことのまとめ
by
WheetTweet
20151130 Apple Pencilを使う
by
Kei Ito
Can we live in a pure Swift world?
by
toyship
バグのことは嫌いになってもXcodeのことは嫌いにならないでください。
by
Daisuke Yamashita
20161014 vrarmr勉強会発表資料 slideshare
by
WheetTweet
3D touch for iOS
by
toyship
スマートフォンサイトデザインに求められるUI/UX設計術
by
Kouichi Kuriyama
20161125 Unity-Android連携の発表資料
by
WheetTweet
Meta2を動かしてみたことのまとめ
by
WheetTweet
More from Kei Ito
PDF
20151028 アプリの権利を委譲する
by
Kei Ito
PDF
20150826 RealmとHimotoki
by
Kei Ito
PDF
20150228 Realm超入門
by
Kei Ito
PDF
Cocoa勉強会関西 #54 Crash Report解析サービスを試してみた
by
Kei Ito
PDF
Cocoa勉強会関西 #42 iOS5の小ネタ集
by
Kei Ito
PDF
AssetsLibraryについて (iOS5対応版)
by
Kei Ito
PDF
Cocoa勉強会関西#39 AssetsLibraryについて
by
Kei Ito
20151028 アプリの権利を委譲する
by
Kei Ito
20150826 RealmとHimotoki
by
Kei Ito
20150228 Realm超入門
by
Kei Ito
Cocoa勉強会関西 #54 Crash Report解析サービスを試してみた
by
Kei Ito
Cocoa勉強会関西 #42 iOS5の小ネタ集
by
Kei Ito
AssetsLibraryについて (iOS5対応版)
by
Kei Ito
Cocoa勉強会関西#39 AssetsLibraryについて
by
Kei Ito
20150930 3D Touchを試す
1.
3D Touchを試す 2015.9.30 関西モバイルアプリ研究会
#6 @itok_twit
2.
@itok_twit • いとうけい(itok) • 公私共にプログラマ
iOS / Mac(たまに Android や Windows) • http://itok.jp/
3.
3D Touch
4.
3D Touch • UITouch •
UIApplicationShortcutItem • UIViewControllerPreviewing
5.
はじめに • 3D Touchが使えるか? •
UITraitCollection.forceTouchCapability で確認 • シミュレータでは使えません
6.
UITouch • force touch具合を直接取得できる public
var force: CGFloat { get } public var maximumPossibleForce: CGFloat { get } • touchesMovedが大量に呼ばれるので注意
7.
UIApplicationShortcutItem
8.
UIApplicationShortcutItem • Info.plistに静的に宣言 →UIApplicationShortcutItems • UIApplication.shortcutItemsで動的に変更 public
class UIApplicationShortcutItem : NSObject { public init(type: String, localizedTitle: String, localizedSubtitle: String?, icon: UIApplicationShortcutIcon?, userInfo: [NSObject : AnyObject]?) }
9.
UIApplicationShortcutItem • UIApplicationDelegateで受け取る func application(application:
UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem, completionHandler: (Bool) -> Void)
10.
UIViewControllerPreviewing
11.
UIViewControllerPreviewing • Previewingに対応するViewを指定する extension UIViewController
{ public func registerForPreviewingWithDelegate( delegate: UIViewControllerPreviewingDelegate, sourceView: UIView) -> UIViewControllerPreviewing }
12.
UIViewControllerPreviewing • UIViewControllerPreviewingDelegateを実装 protocol UIViewControllerPreviewingDelegate
{ public func previewingContext( previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? public func previewingContext( previewingContext: UIViewControllerPreviewing, commitViewController viewControllerToCommit: UIViewController) }
13.
UIViewControllerPreviewing • メニューはUIViewController.previewActionItems()で宣言 class UIPreviewAction
: NSObject, UIPreviewActionItem { public convenience init( title: String, style: UIPreviewActionStyle, handler: (UIPreviewAction, UIViewController) -> Void) } class UIPreviewActionGroup : NSObject, UIPreviewActionItem { public convenience init( title: String, style: UIPreviewActionStyle, actions: [UIPreviewAction]) } • UIPreviewActionGroupでサブメニューも作れる
14.
3D Touch • UITouchを使っているコード(UIViewのサブクラ スなど)は要注意 •
UIApplicationShortcutItemは結構使えそう • UIViewControllerPreviewingもmaster-detail的ナ ビゲーションでは使えそう
Download