SHARE
TWEET

Untitled

marvk Dec 22nd, 2013 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "FlipsideViewController.h"
  2.  
  3. @interface FlipsideViewController ()
  4.  
  5. @end
  6.  
  7. @implementation FlipsideViewController
  8.  
  9. - (void)viewDidLoad
  10. {
  11.     [super viewDidLoad];
  12.    
  13.  
  14.         [self updateWordlength];
  15.     [self updateGuesses];
  16.    
  17.    
  18. }
  19.  
  20. - (void)didReceiveMemoryWarning
  21. {
  22.     [super didReceiveMemoryWarning];
  23.     // Dispose of any resources that can be recreated.
  24. }
  25.  
  26. #pragma mark - Actions
  27.  
  28. - (IBAction)done:(id)sender
  29. {
  30.     [self.delegate flipsideViewControllerDidFinish:self];
  31. }
  32.  
  33. - (void)updateWordlength
  34. {
  35.     self.worldlengthSliderOutput.value = (NSInteger)self.worldlengthSliderOutput.value;
  36.     self.wordlengthDisplay.text = [NSString stringWithFormat:@"%d", (NSInteger)self.worldlengthSliderOutput.value];
  37. }
  38.  
  39. - (void)updateGuesses
  40. {
  41.     self.guessesSliderOutput.value = (NSInteger)self.guessesSliderOutput.value;
  42.     self.guessesDisplay.text = [NSString stringWithFormat:@"%d", (NSInteger)self.guessesSliderOutput.value];
  43. }
  44.  
  45. - (IBAction)wordlengthSlider:(id)sender {
  46.     [self updateWordlength];
  47. }
  48.  
  49. - (IBAction)guessesSlider:(id)sender {
  50.     [self updateGuesses];
  51. }
  52.  
  53. @end
RAW Paste Data
Top