Note that there are some explanatory texts on larger screens.

plurals
  1. POClass incomplete implementation code mistake?
    primarykey
    data
    text
    <p>// I looked around and it seems that an <code>incomplete implementation</code> is a mistake in your code but I can't seem to find it please help me.</p> <p>ScrollerViewController.m:</p> <pre><code>// // ScrollerViewController.m // Coach App Restore // // Created by Marco Donkers on 10/4/12. // Copyright (c) 2012 Marco Donkers. All rights reserved. // #import "ScrollerViewController.h" @interface ScrollerViewController() @end @implementation ScrollerViewController // incomplete implementation NSString *combinedString; NSString *teamString; int integerMdon = 1; @synthesize lblTeamPlayerMdon; @synthesize tbTeamPlayerMdon; @synthesize playerNumberMdon; @synthesize sliderNumberMdon; @synthesize lblPlayerNumberMdon; @synthesize switchRingLeaderMdon; @synthesize lblTeam; - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } - (void)viewDidLoad { [super viewDidLoad]; [self loadString:@"Number":teamString]; tbTeamPlayerMdon.text = teamString; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } -(void)SaveTextBox:(NSString*)string :(NSString*)stringsave { NSString *savestring = string; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject:savestring forKey:stringsave]; [defaults synchronize]; } -(void)loadString:(NSString *)location:(NSString *)saveInString { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSString *loadstring = [defaults objectForKey:location]; saveInString = loadstring; } - (IBAction)sliderPlayerNumberMdon:(id)sender { integerMdon = (int)sliderNumberMdon.value; playerNumberMdon.text = [[NSString alloc]initWithFormat:@"%d", integerMdon]; lblPlayerNumberMdon.text = [[NSString alloc] initWithFormat:@"%d", integerMdon]; } - (IBAction)ringLeaderMdon:(id)sender { } - (IBAction)tbTeamPlayerMdon:(id)sender { combinedString = [teamString stringByAppendingString:playerNumberMdon.text]; [self SaveTextBox:tbTeamPlayerMdon.text :combinedString]; lblTeamPlayerMdon.text = tbTeamPlayerMdon.text; } @end </code></pre> <p>ScrollerViewController.h:</p> <pre><code>// // ScrollerViewController.h // Coach App Restore // // Created by Marco Donkers on 10/4/12. // Copyright (c) 2012 Marco Donkers. All rights reserved. // #import &lt;UIKit/UIKit.h&gt; @interface ScrollerViewController : UIViewController @property (weak, nonatomic) IBOutlet UILabel *lblTeam; @property (weak, nonatomic) IBOutlet UISwitch *switchRingLeaderMdon; @property (weak, nonatomic) IBOutlet UISlider *sliderNumberMdon; @property (weak, nonatomic) IBOutlet UILabel *lblTeamPlayerMdon; @property (weak, nonatomic) IBOutlet UITextField *tbTeamPlayerMdon; @property (weak, nonatomic) IBOutlet UILabel *playerNumberMdon; @property (weak, nonatomic) IBOutlet UILabel *lblPlayerNumberMdon; - (IBAction)sliderPlayerNumberMdon:(id)sender; - (IBAction)ringLeaderMdon:(id)sender; - (IBAction)tbTeamPlayerActionMdon:(id)sender; @end </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload