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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:19:57+00:00 2026-06-09T03:19:57+00:00

ok, this may be a very basic question and I apologise if it is,

  • 0

ok, this may be a very basic question and I apologise if it is, but its driving me mad and I really need to get a better understanding.

I have an app that I am developing and using a new view controller and xib file for each page.

I call each page by using this code:-

HelpVC = [[[HelpViewController alloc] initWithNibName:@"HelpViewController" bundle: [NSBundle mainBundle]]autorelease];
[self presentModalViewController:HelpVC animated:YES];

Which works great.

However if I have this declared in a file and I then want to call it somewhere else I am getting errors all over the place.

is there any way to initialise all the xib files first in a class file and then call them from that file when needed??

Thanks

This is the error I get back

error: expected specifier-qualifier-list before ‘UserInputViewController’

It seems to cause all of my declarations in the .h file to error with the message above.

Some sample code is:-

.h file

#import <UIKit/UIKit.h>
#import "CgePWViewController.h"
#import "LogBackInViewController.h"
#import "LoginViewController.h"

@interface SettingsViewController : UIViewController
{
    CgePWViewController *cPWVC;
    LogBackInViewController *LBIVC;
    LoginViewController *login;
}

@property(nonatomic, retain) CgePWViewController *cPWVC;
@property(nonatomic, retain) LogBackInViewController *LBIVC;
@property(nonatomic, retain) LoginViewController *login;

so basically as soon as I have added in LoginViewController it causes everything else to error, if I take this out then the app runs perfectly.

  • 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-06-09T03:19:58+00:00Added an answer on June 9, 2026 at 3:19 am

    Does your LoginViewController.h imports the SettingsViewController as well? It seems to be a “cross reference” (I don’t know if this term makes sense in English as it does in Portuguese).

    Before your

    @interface SettingsViewController : UIViewController
    

    put a

    @class LoginViewController;
    

    and check if it helps.

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

Sidebar

Related Questions

This may seem like a very basic question, but its been in my head
This may be a very basic question. But I am finding it confusing with
This may be a very basic question but somehow it got me tricked... when
This may be a very basic question. But it is not very clear to
This may be a basic question but I'm not very proficient in SQL Server.
This may sound very basic as a question, but i am stuck in JFreechart
This may seem like a very basic question but I did not seem to
This may look a very basic question but I am having a problem accessing
This may be a very basic question, but it still gets me confused (and
this may seem like a very basic question, but i have difficulty grasping it,

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.