0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Swift】pinch in or out ができない時はisExclusiveTouchがtrueになっているかも!

Posted at

pinch in or out ができない時はisExclusiveTouchがtrueになっているかも!

UIScrollViewのZoom周りをちゃんと設定したが、うまく拡大、縮小できないときはisExclusiveTouch = trueになっていないか確認しましょう。


UIView.appearance().isExclusiveTouch = true
UIButton.appearance().isExclusiveTouch = true
self.isExclusiveTouch = true

上記のような設定がUIScrollView上のViewやCellに設定されていると、複数のViewで同時にTouchイベントを処理しなくなります。
なので、pinch in, outのような複数の指で行う動作がうまく行かないときがあります。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?