LoginSignup
15
15

More than 5 years have passed since last update.

UISliderの指を離したタイミングをフックする方法

Posted at
// タッチした
[slider addTarget:self action:@selector(beginSeek:) forControlEvents:UIControlEventTouchDown];
// 動かしている
[slider addTarget:self action:@selector(seekPositionChanged:) forControlEvents:UIControlEventValueChanged];
// 離した
[slider addTarget:self action:@selector(endSeek:) forControlEvents:(UIControlEventTouchUpInside | UIControlEventTouchUpOutside | UIControlEventTouchCancel)];
15
15
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
15
15