title: self.view.stuff doesn't work inside method
body: <p>I'm having some trouble trying to make a simple view background within a method like:</p>
  
  <pre><code>self.view.backgroundColor=[UIColor redColor];
  </code></pre>
  
  <p>It works on the "- (void)viewDidLoad" thing, but not on mine.
  Heres the .m:</p>
  
  <pre><code>#import "DetailView.h"
  #import "MainViewController.h"
  
  @interface DetailView ()
  @end
  
  @implementation DetailView
  static DetailView *_sharedInstance;
  MainViewController *mainView;
  
  + (DetailView *) sharedInstance
  {
      if (!_sharedInstance)
      {
      _sharedInstance = [[DetailView alloc] init];
      }
  
      return _sharedInstance;
  }
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      return self;
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      mainView = [MainViewController sharedInstance];
      self.view.backgroundColor=[UIColor redColor];   //Works here! D:
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  -(void)createOption:(CGRect)pos Valor1:(NSString *)valor1 Valor2:(NSString *)valor2{
      self.view.backgroundColor=[UIColor redColor];   //Doesn't work here :(
  }
  
  @end
  </code></pre>
  
  <p>and here's my .h:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface DetailView : UIViewController
  
  @property (weak, nonatomic) IBOutlet UILabel *controlVar;
  + (DetailView *) sharedInstance;
  
  -(void)createOption:(CGRect)pos Valor1:(NSString *)valor1 Valor2:(NSString *)valor2;
  @end
  </code></pre>
  
  <p>Edit:
  Here's where I'm calling the 'createOption' (on viewDidLoad of the another class):</p>
  
  <pre><code>DetailView *detailView = [DetailView sharedInstance];
  [detailView createOption:CGRectMake(0, 0, 50, 50) Valor1:@"Teste1" Valor2:@"Teste2"];
  </code></pre>
  
  <p>What am i missing here and how can i fix it?</p>