Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "FlipsideViewController.h"
- @interface FlipsideViewController ()
- @end
- @implementation FlipsideViewController
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- [self updateWordlength];
- [self updateGuesses];
- }
- - (void)didReceiveMemoryWarning
- {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- #pragma mark - Actions
- - (IBAction)done:(id)sender
- {
- [self.delegate flipsideViewControllerDidFinish:self];
- }
- - (void)updateWordlength
- {
- self.worldlengthSliderOutput.value = (NSInteger)self.worldlengthSliderOutput.value;
- self.wordlengthDisplay.text = [NSString stringWithFormat:@"%d", (NSInteger)self.worldlengthSliderOutput.value];
- }
- - (void)updateGuesses
- {
- self.guessesSliderOutput.value = (NSInteger)self.guessesSliderOutput.value;
- self.guessesDisplay.text = [NSString stringWithFormat:@"%d", (NSInteger)self.guessesSliderOutput.value];
- }
- - (IBAction)wordlengthSlider:(id)sender {
- [self updateWordlength];
- }
- - (IBAction)guessesSlider:(id)sender {
- [self updateGuesses];
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement