title: EXC_BAD_ACCESS error UIButton's IBAction with ARC
body: <p>I am developing an Iphone Application with Xcode 4.3.2 for iOS 4.1</p>
  
  <p>I had added a UIButton in UIView from IB and connect it with an IBAction.
  But when i touched down the button i got EXC_BAD_ACCESS error.</p>
  
  <p>I enabled ARC when i was creating the project. </p>
  
  <p>After this error and googling i learnt that bad memory management cause this error; but i couldn't determine what does cause this problem. 
  How can i find the problem?</p>
  
  <p>.h file contains</p>
  
  <pre><code>-(IBAction)openTwitterSignInViewController:(id)sender;
  </code></pre>
  
  <p>.m file contains</p>
  
  <pre><code>- (void)openTwitterSignInViewController:(id)sender{
      UIViewController *secondViewController = [[TwitterSignInViewController alloc] initWithNibName:@"TwitterSignInViewController" bundle:nil];
      [self.navigationController pushViewController:secondViewController animated:YES]; 
  }
  </code></pre>
  
  <p>Also <code>UIButton</code> and <code>openTwitterSignInViewController</code> connected via IB.</p>
  
  <p>There is no console output, i don't know why. So i am adding a screenshot.
  <img src="https://i.stack.imgur.com/5VXr2.png" alt="enter image description here"></p>
  
  <p>LoginViewController.m</p>
  
  <pre><code>#import "LoginViewController.h"
  #import "Helper.h"
  #import "TwitterSignInViewController.h"
  
  @interface LoginViewController ()
  
  @end
  
  @implementation LoginViewController
  @synthesize topBarText, userNameText, passwordText, passwordReminderButton, loginButton;
  @synthesize signInTwitterButton, registerButton;
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization
      }
      return self;
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 15, 20)];
  
      userNameText.leftView = paddingView;
      userNameText.leftViewMode = UITextFieldViewModeAlways;
  
      passwordText.leftView = [NSKeyedUnarchiver unarchiveObjectWithData:
                               [NSKeyedArchiver archivedDataWithRootObject: paddingView]];
      passwordText.leftViewMode = UITextFieldViewModeAlways;
  
      topBarText.font = [UIFont fontWithName:@"Neo Sans Pro" size:14 ];
      userNameText.font = [UIFont fontWithName:@"Neo Sans Pro" size:14];
  
      passwordText.font = [UIFont fontWithName:@"Neo Sans Pro" size:14];
      passwordReminderButton.titleLabel.font = [UIFont fontWithName:@"Neo Sans Pro" size:14];
      loginButton.titleLabel.font = [UIFont fontWithName:@"Neo Sans Pro" size:14];
  
      registerButton.titleLabel.font = [UIFont fontWithName:@"Neo Sans Pro" size:14];
  }
  
  - (IBAction)openTwitterSignInViewController:(id)sender{
      TwitterSignInViewController *secondViewController = [[TwitterSignInViewController alloc] initWithNibName:@"TwitterSignInViewController" bundle:nil];
      [self.navigationController pushViewController:secondViewController animated:YES]; 
  }
  - (void)viewDidUnload
  {
      [super viewDidUnload];
      // Release any retained subviews of the main view.
      // e.g. self.myOutlet = nil;
  }
  
  
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }
  
  @end
  </code></pre>
  
  <p>At least i got the console output by enabling Zombie Objects.
  Here is the output. But i couldn't find the error yet</p>
  
  <pre><code>2012-08-01 21:11:30.569 adMingle[3156:f803] *** -[LoginViewController performSelector:withObject:withObject:]: message sent to deallocated instance 0x6857420
  </code></pre>