- (void)viewDidLoad
{
[super viewDidLoad];
UISlider *progressSlider = [[UISlider alloc]initWithFrame:CGRectMake(54, 20, 210, 23)];
[progressSlider setThumbImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image1" ofType:@"png"]]
forState:UIControlStateNormal];
[progressSlider setMinimumTrackImage:[[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image3" ofType:@"png"]] stretchableImageWithLeftCapWidth:5 topCapHeight:3]
forState:UIControlStateNormal];
[progressSlider setMaximumTrackImage:[[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image2" ofType:@"png"]] stretchableImageWithLeftCapWidth:5 topCapHeight:3]
forState:UIControlStateNormal];
[self.view addSubview:progressSlider];
[progressSlider release];
UISlider *progressSlider1 = [[UISlider alloc]initWithFrame:CGRectMake(54, 120, 210, 23)];
[self.view addSubview:progressSlider1];
[progressSlider1 release];
}
{
[super viewDidLoad];
UISlider *progressSlider = [[UISlider alloc]initWithFrame:CGRectMake(54, 20, 210, 23)];
[progressSlider setThumbImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image1" ofType:@"png"]]
forState:UIControlStateNormal];
[progressSlider setMinimumTrackImage:[[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image3" ofType:@"png"]] stretchableImageWithLeftCapWidth:5 topCapHeight:3]
forState:UIControlStateNormal];
[progressSlider setMaximumTrackImage:[[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image2" ofType:@"png"]] stretchableImageWithLeftCapWidth:5 topCapHeight:3]
forState:UIControlStateNormal];
[self.view addSubview:progressSlider];
[progressSlider release];
UISlider *progressSlider1 = [[UISlider alloc]initWithFrame:CGRectMake(54, 120, 210, 23)];
[self.view addSubview:progressSlider1];
[progressSlider1 release];
}