Guest User

Untitled

a guest
May 20th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. CGFloat testing = [mainSlider floatValue];
  2.  
  3. NSLog(@"%f", testing);
  4.  
  5. CGFloat testing = 0.0;
  6. if(YES){
  7. CGFloat testing = [mainSlider floatValue];
  8. //should be: testing = [mainSlider floatValue];
  9. }
  10. NSLog(@"testing = %f", testing); //this will print "testing = 0.000000"
Add Comment
Please, Sign In to add comment