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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:51:00+00:00 2026-05-23T02:51:00+00:00

It`s probably a very silly mistake, but I’ve spent over 4 days looking for

  • 0

It`s probably a very silly mistake, but I’ve spent over 4 days looking for a solution for this.

It is very simple, I´ve got my MainView.xib and a view called FirstViewController (h/m/xib).

In MainWindow.xib I add a UIViewController and change the class name to FirstViewController and set the Nib name also (altouhg I’ve tried both ways).

I guess it has to do something with outlets, but I can`t really tell, as I am a newbie developing for iOS, any help wil REALLY help a lot.

Im using XCode 3.2 and interface builder, with SDK 4.3

AppDelegate

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>


@interface iPadTerritorioV2AppDelegate : NSObject <UIApplicationDelegate> {

    IBOutlet UIWindow *window;
    IBOutlet UIViewController *navigationController;

    NSString *devToken;

    NSString *matricula;
    NSString *campus;

        NSMutableArray *materiasAlumno; //para CCM
        NSMutableArray *busqDir; //para CCM

    NSInteger agendaBadgeNumber;
    NSInteger intramurosBadgeNumber;
    NSInteger notificacionesBadgeNumber;
    NSInteger mapaBadgeNumber;

    NSMutableData *receivedData;
    NSMutableDictionary *listData;

    BOOL yaSeHizoElPrimerFetchBadges;

}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UIViewController *navigationController;


@property (nonatomic, retain) NSString *devToken;

@property (nonatomic, retain) NSString *matricula;
@property (nonatomic, retain) NSString *campus;

@property (nonatomic, retain) NSMutableArray *materiasAlumno;
@property (nonatomic, retain) NSMutableArray *busqDir;

@property NSInteger agendaBadgeNumber;
@property NSInteger intramurosBadgeNumber;
@property NSInteger notificacionesBadgeNumber;
@property NSInteger mapaBadgeNumber;

@property (nonatomic, retain) NSMutableData *receivedData;
@property (nonatomic, retain) NSMutableDictionary *listData;


@property BOOL yaSeHizoElPrimerFetchBadges;

- (void)fetchBadges;

@end

FirstViewController.h

#import <UIKit/UIKit.h>
#import "Constants.h"
#import "StringDecoding.h"

#define kConnectionBadgeNotifications   0
#define kConnectionLogin                1
#define kConnectionDevToken             2

#define kCCMindex   0
#define kCSFindex   1
#define kMTYindex   2

@interface FirstViewController : UIViewController {

    IBOutlet UISegmentedControl *segmentedCampus;
    IBOutlet UITextField *usernameField;
    IBOutlet UITextField *passwordField;
    IBOutlet UISwitch *remembermeSwitch;
    IBOutlet UIButton *loginButton;
    UIActivityIndicatorView *loginIndicator;

    NSMutableDictionary *listData;
    NSMutableData *receivedData;
    NSInteger connectionID;
}

@property (nonatomic, retain) UISegmentedControl *segmentedCampus;
@property (nonatomic, retain) UITextField *usernameField;
@property (nonatomic, retain) UITextField *passwordField;
@property (nonatomic, retain) UIActivityIndicatorView *loginIndicator;
@property (nonatomic, retain) UISwitch *remembermeSwitch;
@property (nonatomic, retain) UIButton *loginButton;

@property (nonatomic, retain) NSMutableDictionary *listData;
@property (nonatomic, retain) NSMutableData *receivedData;
@property NSInteger connectionID;

- (IBAction)handleNextClick:(id) sender;
- (IBAction)backgroundClick;
- (IBAction)login: (id) sender;

@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-23T02:51:01+00:00Added an answer on May 23, 2026 at 2:51 am

    It sounds like your FirstViewController isn’t being retained – if it’s not assigned to an outlet anywhere, nothing’s retaining it and it’ll just disappear. Add a property somewhere (your AppDelegate, perhaps, if that’s all you’ve got) and connect it to the controller:

    @property (nonatomic, retain) IBOutlet UIViewController *firstViewController;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably VERY simple and silly, but I am trying to use jQuery
This is probably a very silly and simple question to most of you, but
This is probably very simple but it's really confusing me. When I implement the
So this one is probably very simple, but I'm having a bit of trouble
I know this is probably a very simple question but how would I do
This is quite probably a very silly question but I need to be sure.
Okay, this is (probably) a very simple question, but I am afraid I know
This is a very small question, and probably something really silly! But why am
This is probably very simple but I couldn't find anything about in the usual
This is probably very simple, but my attempts (guided by Intellisense and MSDN) have

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.