1

I have the following method in my view-controller:

- (IBAction)itemSlider:(UISlider *)itemSlider withEvent:(UIEvent*)e;
{
    UITouch * touch = [e.allTouches anyObject];

    if( touch.phase != UITouchPhaseMoved && touch.phase != UITouchPhaseBegan)
    {
    }
    else if( touch.phase != UITouchPhaseMoved && touch.phase != UITouchPhaseBegan)
    {
    }
   ... 
}

Do I really need to link all the events one by one to my controller?

Larme
  • 24,190
  • 6
  • 51
  • 81
Gal Marom
  • 8,499
  • 1
  • 17
  • 19

1 Answers1

1

if you are seeking to capture the value changed on slider , then you may follow up the below tutorials instead of using touch events.

http://www.techrepublic.com/blog/software-engineer/better-code-uislider-basics-for-apple-ios/