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 6921373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:16:07+00:00 2026-05-27T10:16:07+00:00

i changed my iphone application first screen because i want to come a screen

  • 0

i changed my iphone application first screen because i want to come a screen and i will click a button before going main works and screens. i change my appdelegate code for this;

- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    LoadingViewController *m_view = [[[LoadingViewController alloc]initWithNibName:@"LoadingViewController" bundle:nil] autorelease];

    m_view.window = window;

    [self.window addSubview:m_view.view];
    [self.window makeKeyAndVisible];

    // Override point for customization after app launch    
    //[window addSubview:viewController.view];
    //[window makeKeyAndVisible];
}

and i create a viewcontroller class;

h file;

#import <UIKit/UIKit.h>

@interface LoadingViewController : UIViewController {
    UIWindow *window;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
- (IBAction)startButtonClick:(id)sender;
- (IBAction)favoriButtonClick:(id)sender;

@end

and .m file;

- (IBAction)startButtonClick:(id)sender {
    ScrollViewWithPagingViewController *yellowController = [[ScrollViewWithPagingViewController alloc]initWithNibName:@"ScrollViewWithPagingViewController" bundle:nil];
    [self presentModalViewController:yellowController animated:YES];

    [yellowController release];
}

but when i click the button, didnt come this click action. i get an error before like this;

error here

please help me, i dont understand what is wrong?

—–**********************************************—-
i resolved it !

change this code;

LoadingViewController *m_view = [[[LoadingViewController alloc]initWithNibName:@"LoadingViewController" bundle:nil] autorelease];

i delete autorelease;

LoadingViewController *m_view = [[LoadingViewController alloc]initWithNibName:@"LoadingViewController" bundle:nil];
  • 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-27T10:16:08+00:00Added an answer on May 27, 2026 at 10:16 am

    Looks like your issue might be related to how you are managing the window. You should only need to make one key and visible and you should not have to include the window in you view controller (unless you are doing some other special thing in the controller). I’d leave te default window behavior and just add your controller’s view as a sub view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During the work on my iPhone application the icon changed from time to time.
In my iPhone OS application I want (need) to watch for changes in the
I have some query. First of all let's have an iPhone application flow which
I am going to implement StoreKit in an iPhone application and wanted to know
I am following the tutotial on Apple's website for building your first iPhone application,
All, The application I have created works perfectly the first time around, but if
I am currently using the AppDelegate in my first iPhone app to handle application
I have implemented Add to Favourites functionality for my iPhone application. It works fine
I'm new to iPhone and Apple development and working on my first application. It
I'm creating my first iPhone application (using XCode 4), and I initially created the

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.