title: problem with UISlider : printing values of the slider and getting to change the style
body: <p>I am facing some problem with UISlider programming. </p>
  
  <p>1) style: I know we have to set the minimum and maximum images. I am just not sure what images and any image reference will be great ? I only want to change from blue to black ! </p>
  
  <p>2) also, my code for the UISlider is this :</p>
  
  <p>in header file:</p>
  
  <pre><code>UISlider *slider;
  </code></pre>
  
  <p>in code file:</p>
  
  <pre><code> //slider
   CGRect frame=CGRectMake(10, 70, 300, 10);
   photoSlider=[[UISlider alloc] initWithFrame:frame];
   photoSlider.minimumValue=0.0;
   photoSlider.maximumValue=90.0; //maximumPhotoImage
   photoSlider.continuous=NO;
   photoSlider.value=10.0;
   photoSlider.backgroundColor=[UIColor clearColor];
   //photoSlider
  
   [photoSlider addTarget:self action:@selector(updateImage:)   forControlEvents:UIControlEventValueChanged];
   [self.view addSubview:photoSlider];
  
  - (void) updateImage:(id) sender  
  {
     NSLog(@"val: %d",photoSlider.value);
  }
  </code></pre>
  
  <p>The values that I get from the function are 0 at both ends and very large value in between (both positive and negative...random values).</p>
  
  <p>Can anyone kindly help me out ? Thanks.</p>