I need to change slider colors in my iphone app, and I put This:
- (UISlider *)ratioSlider
{
UIImage *stetchLeftTrack = [[UIImage imageNamed:@"grayslide.png"]
stretchableImageWithLeftCapWidth:10.0 topCapHeight:0.0];
UIImage *stetchRightTrack = [[UIImage imageNamed:@"grayslide.png"]
stretchableImageWithLeftCapWidth:10.0 topCapHeight:0.0];
[ratioSlider setThumbImage: [UIImage imageNamed:@"slider_ball.png"] forState:UIControlStateNormal];
[ratioSlider setMinimumTrackImage:stetchLeftTrack forState:UIControlStateNormal];
[ratioSlider setMaximumTrackImage:stetchRightTrack forState:UIControlStateNormal];
}
in the "myVIewController.m" file, like in the UICatalog apple example file. I've added all of the images and defined the slider, but all that comes up on the simulator is a normal slider, and the only error/warning in XCode is a warning saying "Warning: control reaches end of non-void function". How do I get this code to work?