title: Unable to post Tweets from another Viewcontroller
body: <p>I am Using Outh to add Twitter to my app.</p>
  
  <p>Below are two UIViewControllers for login and posting tweets respectively.</p>
  
  <p>1.SettingViewcontroller
   2.DetailViewcontroller</p>
  
  <p>This code for  login to  twitter with SettingViewcontroller.</p>
  
  <pre><code>- (void)switchAction1:(UISwitch*)sender
     {
     if (sender.on)
      {
             if(_engine) 
         return;
  
        _engine = [[SA_OAuthTwitterEngine alloc] initOAuthWithDelegate:self]
     _engine.consumerKey = @"###";
      _engine.consumerSecret = @"###"; 
  
     UIViewController *controller =[SA_OAuthTwitterController  controllerToEnterCredentialsWithTwitterEngine: _engine delegate: self];
  
     DetailViewcontroller *detobj=[[DetailViewcontroller alloc]init];
  
   detobj.detail_enginne=_engine; 
  
     [detobj release];
  
      [self presentModalViewController: controller animated: YES];
     }
    if(!sender.on)
    { 
  
  NSLog(@"Logout section");
  
      }
  }
  </code></pre>
  
  <p>And In DetailViewcontroller when action sheet button cliked the below code will executed.</p>
  
  <pre><code>    if ([detail_enginne isAuthorized]) 
      { 
        NSLog(@"engine availble");
  
                 NSString *str=@"hai twitterrrrrrrrrrr";
  
               [detail_enginne sendUpdate:str];
  
      }
      else{
          NSLog(@"Engine not availabele");
               }  
  }
  </code></pre>
  
  <p>Here Iam unable  to send tweets from DetailViewcontroller.</p>
  
  <p>How to achive this?</p>
  
  <p><strong>Updated</strong></p>
  
  <p>Iam loding Detail view using ViewDidload not Nib.</p>
  
  <p>Detailview.m</p>
  
  <p>this is actionSheet method for posting data to  facebook and twitter from DetailView</p>
  
  <pre><code>-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
  
      // For  facebook
  if(buttonIndex == 0)
  {
  
  
      if ([session resume])  {
  
  
          [self postToWall];
  
          NSLog(@"Post to wall");
  
      }
      else {
  
          self.loginDialog = nil;
          _loginDialog = [[FBLoginDialog alloc] init];    
          [_loginDialog show];
  
      }
  
  
  }                           
  
  //  For twittter
    if(buttonIndex == 1)
    {         
      if(detail_enginne!=nil) 
      { 
  
          NSString *str=@" hai twitter  ";
          [detail_enginne sendUpdate:str];
  
      }
      else 
      {
          NSLog(@"Not availabele");
  
      }
  }
  if(buttonIndex == 2)
  {
  
      NSLog(@"cancel button ");
  
  
  }
     }
  </code></pre>