Delegates for segmented control, switch, and slider

Discussion in 'iOS Development' started by gojohnnyboi, Jun 16, 2008.

  1. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Are there actual delegates for like value changes for these items, because having to subclass them all and calling the mouseDragged function is a pain in the butt.
  2. vieestchien

    vieestchien New Member

    Joined:
    May 7, 2008
    Messages:
    43
    Likes Received:
    1
    I haven't used the other two, but for segmented control:
    [ segCtl setDelegate: self ];
    Then implement this method:
    - (void)segmentedControl

    Please Register or Log in to view images

    UISegmentedControl *)segmentedControl selectedSegmentChanged

    Please Register or Log in to view images

    int)segment;
  3. optimo

    optimo New Member

    Joined:
    Sep 28, 2007
    Messages:
    535
    Likes Received:
    17

Share This Page