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

  • Home
  • SEARCH
  • 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 6253745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:03:29+00:00 2026-05-24T14:03:29+00:00

I am using XCode 4. In My applicaion I have Files WelcomeViewController FirstViewController SecondViewController

  • 0

I am using XCode 4.

In My applicaion
I have Files

  • WelcomeViewController
  • FirstViewController
  • SecondViewController
  • ThirdViewController

In every view I have same functionality.

Pressing the Button and Load another view By presentModelViewController..

Problem I am Facing is I can not Declare Two outlets in One header file As If I want to move to the Back Page.?

#import <UIKit/UIKit.h>

#import "ThirdViewController.h"

#import "FirstViewController.h"

@interface SecondViewController : UIViewController {
    UIButton *button1;
}

@property (nonatomic,retain) IBOutlet ThirdViewController *thirdVC;
@property (nonatomic,retain)  IBOutlet FirstViewController *firstVC;
//Error at this line above 
@property (nonatomic,retain) IBOutlet UIButton *button1;

@end

Is it a good practice to alloc and init the new controller or I just have to take a view controller in XIB file and then just create Outleyts???
Yes you are right definbately, I have tried it is working…but why I am taking View Controller because I just can jump to previous to previous view ? What is wrong If I take an IBOutlet.???

So, What if I want to move previous to previous view I need to write
two times
[self dismisviewContrlloer animated:YES];

[self dismisviewContrlloer animated:YES];
????

  • 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-24T14:03:30+00:00Added an answer on May 24, 2026 at 2:03 pm

    Why would you want to have 3 outlets? Just have properties for the viewcontroller. Alloc and init and present the views of the same controller class.

    So basically you will have a xib file for a viewcontroller and you will need to create as many instances of that depending on your requirement. Looking at the code i think it needs lot of redesign. You present and dismiss these views accordingly.

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

Sidebar

Related Questions

I have an XCode project, with the XIB interface files built using Interface Builder.
I'm using XCode4, and I have about 1000 audio files included in my application.
I'm trying to create a multi-view iOS (4.3) application in xcode 4 using the
I have developed an application using last SDK (4.3) and XCODE 4. I have
Is there any way to have two .nib files with the same name? I'm
Using Xcode 3.1 on OSX 10.5; is it possible to attach (the debugger) to
I've been using Xcode for the usual C/C++/ObjC development. I'm wondering what are practical
I am using xcode 2.4.1 on tiger. When i do below everything is ok.
I'm trying to run Python scripts using Xcode's User Scripts menu. The issue I'm
I'm new to development using Xcode, and am having trouble using the built-in Leaks

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.