---
title: 【今から使える】 チームメンバーの反応がよかった tips集 #wwdctokyo
tags:  #wwdctokyo  
author: [Yahoo!デベロッパーネットワーク](https://www.docswell.com/user/ydnjp)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/4L73M5K5E5.jpg?width=480
description: ヤフーで開催したWWDCのライブビューイングイベントで行われたLTの登壇資料です。 iOS アプリ開発で役立つXodeの使い方やデバッグ方法などのtipsを紹介します。
published: June 28, 19
canonical: https://www.docswell.com/s/ydnjp/ZJRDE5-2019-06-28-115631
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/4L73M5K5E5.jpg)

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


# Page. 2

![Page Image](https://bcdn.docswell.com/page/V87D6D3YJG.jpg)

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


# Page. 3

![Page Image](https://bcdn.docswell.com/page/4VJPYX42J8.jpg)

•アウトプット
• 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.


# Page. 4

![Page Image](https://bcdn.docswell.com/page/L2EVGLXXEQ.jpg)

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


# Page. 5

![Page Image](https://bcdn.docswell.com/page/Z57G8XVR7L.jpg)

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


# Page. 6

![Page Image](https://bcdn.docswell.com/page/V4EQ986YEP.jpg)

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 7

![Page Image](https://bcdn.docswell.com/page/DKJ4X24ZJ1.jpg)

Editor &gt; Canvas &gt; Show Bounds Rectangles
Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 8

![Page Image](https://bcdn.docswell.com/page/PLE1NM4DJG.jpg)

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 9

![Page Image](https://bcdn.docswell.com/page/8GEW43X872.jpg)

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


# Page. 10

![Page Image](https://bcdn.docswell.com/page/W47Z2V69E3.jpg)

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 11

![Page Image](https://bcdn.docswell.com/page/KYJ6V52D7V.jpg)

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


# Page. 12

![Page Image](https://bcdn.docswell.com/page/5GJ5DY28J4.jpg)

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


# Page. 13

![Page Image](https://bcdn.docswell.com/page/4LE3M5KGJ5.jpg)

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


# Page. 14

![Page Image](https://bcdn.docswell.com/page/V8ED6D3N7G.jpg)

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


# Page. 15

![Page Image](https://bcdn.docswell.com/page/4V7PYX4N78.jpg)

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


# Page. 16

![Page Image](https://bcdn.docswell.com/page/L2JVGLXYJQ.jpg)

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


# Page. 17

![Page Image](https://bcdn.docswell.com/page/Z5EG8XVWEL.jpg)

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


# Page. 18

![Page Image](https://bcdn.docswell.com/page/V4JQ986QJP.jpg)

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


# Page. 19

![Page Image](https://bcdn.docswell.com/page/DK74X24Y71.jpg)

😱
Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 20

![Page Image](https://bcdn.docswell.com/page/PLJ1NM4N7G.jpg)

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


# Page. 21

![Page Image](https://bcdn.docswell.com/page/8GJW43ZME2.jpg)

/*!
-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() -&gt; Bool
Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 22

![Page Image](https://bcdn.docswell.com/page/W4EZ2V1MJ3.jpg)

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


# Page. 23

![Page Image](https://bcdn.docswell.com/page/KY76V5L5EV.jpg)

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 24

![Page Image](https://bcdn.docswell.com/page/5G75DY1G74.jpg)

Copyright 2019 Yahoo Japan Corporation. All Rights Reserved.


# Page. 25

![Page Image](https://bcdn.docswell.com/page/V9J28G1DJR.jpg)

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


# Page. 26

![Page Image](https://bcdn.docswell.com/page/5DEY6VZM7M.jpg)

@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.


# Page. 27

![Page Image](https://bcdn.docswell.com/page/2VJNZM33J8.jpg)

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


# Page. 28

![Page Image](https://bcdn.docswell.com/page/GYE9ZN9PE3.jpg)

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


# Page. 29

![Page Image](https://bcdn.docswell.com/page/5GE81K9XJD.jpg)

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


# Page. 30

![Page Image](https://bcdn.docswell.com/page/MLELQZWNJR.jpg)

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


# Page. 31

![Page Image](https://bcdn.docswell.com/page/54JM1V9Q7W.jpg)

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


# Page. 32

![Page Image](https://bcdn.docswell.com/page/ZPJRL2GKJ9.jpg)

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


# Page. 33

![Page Image](https://bcdn.docswell.com/page/NPEXWDX5JX.jpg)

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


