【今から使える】 チームメンバーの反応がよかった tips集 #wwdctokyo

624 Views

June 28, 19

スライド概要

ヤフーで開催したWWDCのライブビューイングイベントで行われたLTの登壇資料です。
iOS アプリ開発で役立つXodeの使い方やデバッグ方法などのtipsを紹介します。

profile-image

2023年10月からSpeaker Deckに移行しました。最新情報はこちらをご覧ください。 https://speakerdeck.com/lycorptech_jp

シェア

またはPlayer版

埋め込む »CMSなどでJSが使えない場合

関連スライド

各ページのテキスト
1.

【今から使える】 チームメンバーの反応がよかった tips集 WWDC Extended Tokyo 2019 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

2.

•大西智也 @ヤフー •Yahoo!メール •iOS •ヤフオク! •iOS, ライブオークション, Webフロント技術 •Holiday (副業) •iOS •キーワード • iOS, LeanXP, TDD, ペアプロ, Web, React.js, Python Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

3.

•アウトプット • http://tomoyaonishi.hatenablog.jp • https://github.com/TomoyaOnishi • https://www.slideshare.net/ssuser9c7e21/ presentations • https://www.slideshare.net/techblogyahoo/a6ctocios-xp-yjtc Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

4.

WWDC 2019 個人的予想 • marzipan • Web関連の発表 • PWA, AMP • App Storeの強化 • 完全なリリース制御 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

5.

IB上でUIViewの boundsを表示する Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

6.

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

7.

Editor > Canvas > Show Bounds Rectangles Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

8.

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

9.

IB上でoptionを押す と距離がわかる Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

10.

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

11.

IB上で階層選択 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

12.

shift+右クリック or force touch Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

13.

一時的にViewを動かすと きはtransformを使う Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

14.

if animationView.transform == .identity { animationView.transform.ty = 100 } else { animationView.transform = .identity } Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

15.

var originalCenter: CGPoint? var originalFrame: CGRect? 🙅 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

16.

UIView. performWithoutAnimation() Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

17.

UIView.performWithoutAnimation { tableView.beginUpdates() tableView.endUpdates() } CATransaction kCATransactionDisableActions Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

18.

UserDefaults synchronize不要 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

19.

😱 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

20.

/*! -synchronize is deprecated and will be marked with the NS_DEPRECATED macro in a future release. ... open func synchronize() -> Bool Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

21.

/*! -synchronize is deprecated and will be marked with the NS_DEPRECATED macro in a future release. -synchronize blocks the calling thread until all in-progress set operations have completed. This is no longer necessary. Replacements for previous uses of -synchronize depend on what the intent of calling synchronize was. If you synchronized... - ...before reading in order to fetch updated values: remove the synchronize call - ...after writing in order to notify another program to read: the other program can use KVO to observe the default without needing to notify - ...before exiting in a non-app (command line tool, agent, or daemon) process: call CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication) - ...for any other reason: remove the synchronize call */ open func synchronize() -> Bool Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

22.

AutoLayoutな UITableViewCellで縦方向の 謎ワーニングが出るときは一 番下をpriority 999 にする Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

23.

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

24.

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

25.

UIView.animate() 🙅 UIViewPropertyAnimator 🙆 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

26.

@available(iOS 10.0, *) open class UIViewPropertyAnimator let animator = UIViewPropertyAnimator() animator.addAnimations({ _ in }) animator.addCompletion({ _ in }) animator.startAnimation(afterDelay: 2) animator.stopAnimation(false) Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

27.

didSetの補完が出る ようになったが、 didSet {} 内の補完が 出なくなった Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

28.

didSetの補完が出るようになった Xcode10.2〜 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

29.

didSet {} 内の補完が出なくなった Xcode10.2〜 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

30.

guard let self = self else { } を書くとpoできない Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

31.

UITextView. textContainerInsets Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

32.

textView.textContainerInset.left = 100 Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.

33.

Write code. Blow minds. Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.