Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7013457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:23:24+00:00 2026-05-27T22:23:24+00:00

i ve got an IBACtion button when the button is clicked.it got to open

  • 0

i ve got an IBACtion button when the button is clicked.it got to open a new view.when the button is clicked i m getting EXC_BAD_ACCESS.i ve enabled NSZOMBIE and it shows the last line in the function -(void)homepage could u guys help me out..below is the code.

splashscreen.h

@interface SplashScreen : UIViewController {
HomePage *newEnterNameController;
}

 @property(nonatomic,retain)HomePage *newEnterNameController;
 @end

splashscreen.m

    @implementation SplashScreen
    @synthesize newEnterNameController;


      -(void)homepage
       {
    self.newEnterNameController = [[HomePage new] initWithNibName:@"HomePage"bundle: 
       [NSBundle mainBundle]];
        [newEnterNameController setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
    [self presentModalViewController:self.newEnterNameController animated:YES];
     }

    - (void)dealloc {
    [self.newEnterNameController release];
       [super dealloc];

      }


@end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:23:24+00:00Added an answer on May 27, 2026 at 10:23 pm
    self.newEnterNameController = [[HomePage new] initWithNibName:@"HomePage"bundle:    [NSBundle mainBundle]];
    

    [Class new] is equal to [[Class alloc] init], so you are initializing object twice. This line should probably look like this:

    self.newEnterNameController = [[HomePage alloc] initWithNibName:@"HomePage"bundle:    [NSBundle mainBundle]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using : [button addTarget:self action:@selector(moved:) forControlEvents:UIControlEventTouchDragInside]; Function code move: - (IBAction)moved:(id)sender { UIButton
i ve got a view controller containing four buttons..clicking on each button takes you
ive got a view based application containg a button clicking the button takes you
got a new blog at wordpress few days ago ( http://ghads.wordpress.com ) and I
I got view animations to work perfectly in Xcode (slide off the screen on
Im new to xCode programming, ive got this code from an ebook tutorial playing
This should be easy. I've got a method to move a view up and
I am making a new window open and would like to implement the method
I've got an IBOutlet and an IBAction connected to an AppController Class. When a
I've got: -(IBAction)about { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@About, @Title of AlertView) message:@App

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.