Those should not be labels, but buttons. You can customize the UIButton to look like what you have above, and supporting the color change is very easy.
Dan Lorenc
2009-06-15 18:22:41
Those should not be labels, but buttons. You can customize the UIButton to look like what you have above, and supporting the color change is very easy.
[startButton addTarget: self action: @selector(stcolor:) forControlEvents: UIControlEventTouchUpInside];
[endButton addTarget: self action: @selector(edcolor:) forControlEvents: UIControlEventTouchUpInside];
-(id)stcolor{ startButton.backgroundColor=[UIColor whitecolor]; endbutton.backgroundColor=[UIColor lightGrayColor];
} -(id)edcolor{ startButton.backgroundColor=[UIColor whitecolor]; endbutton.backgroundColor=[UIColor lightGrayColor];
}