title: Self.view calls viewDidLoad in iPhone
body: <p>I am new to iPhone Development. Please Help me</p>
  
  <p>I have a view controller calling method from <code>NSObject</code> class in the background for view controller when the method calls in that i am creating a view i wrote their <code>self.view addSubview:view</code> after this line my view did load calls again.</p>
  
  <p>I dont know why this problem appears please help me here is my code.</p>
  
  <p><strong>NSObject.m</strong></p>
  
  <pre><code>- (void) showModalMessage:(NSString *)mes
  {
    self = [super init];
          if (self) {
              objViewController = [[ViewController alloc] init];
          }
      [objViewController showPopUp:mes];
  }
  
  ViewController.m
  - (void) showPopUp:(NSString *)mes
  {
  
      labelView = [[UIView alloc] initWithFrame:CGRectMake(470, 740, 380, 50)];
      [self setLabelViewSettings];
      label = [[UILabel alloc] initWithFrame:CGRectMake(20, 8, 340, 30)];
      [self setLabelSettings];
      [labelView addSubview:label];
      [label release];
      [self.view addSubview:labelView];// After This line View did load calls again 
      [labelView release];
  
      [UIView beginAnimations:nil context:nil];
      [UIView setAnimationDuration:0.6];
      [UIView setAnimationDelegate:self];
      [UIView setAnimationDidStopSelector:@selector(hide)];
      [UIView commitAnimations];
  }
  </code></pre>
  
  <p>Sorry For my bad english please help me</p>