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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:20:13+00:00 2026-05-23T13:20:13+00:00

I keep getting error: no type or storage class may be specified here before

  • 0

I keep getting

error: no type or storage class may be specified here before 'interface'

Here’s the image:

enter image description here

and the code:

#import <Foundation/Foundation.h>

@interface Utilities : NSObject {

}

+ (NSString *)getDocumentsDirectory;
+ (void)showActivityIndicator;
+ (void)hideActivityIndicator;
+ (void)setUser:(NSString *)userName withPassword:(NSString *)password;
+ (NSString *)getUserName;
+ (NSString *)getPassword;
+ (long long)generateTicketNumber;
+ (BOOL)reachable;
+ (NSString *)printerAddress;
+ (NSInteger)port;
+ (void)setAddress:(NSString*)newAddress andPort:(NSInteger)newPort;
+ (void)showDataActivity;

@end


@interface CustomUITextField:UITextField{
    NSInteger rowNumber;
}

@property (nonatomic) NSInteger rowNumber;

@end

I reduced the .m file to just simple:

#import "Utilities.h"

@implementation Utilities

@end

I still get the error. (Ofcourse I get warnings for not implementing methods).

I have been trying to figure out what’s wrong for past 2-3 hours. Please help. Thanks.

**UPDATE:**I split up the two classes and all of a sudden, I am gettting “property declaration not found ….” error in a totally different class.

Here’s my DataCenter.h

#import <Foundation/Foundation.h>


@interface DataCenter : NSObject {
    BOOL updating;
    NSDictionary *dataDictionary;
}

@property (nonatomic, retain) NSDictionary *dataDictionary;

+ (DataCenter *)sharedInstance;
- (void)update;
- (NSArray *)getSTData;
- (BOOL)saveSTData;
- (NSArray *)getLookUpsData;
- (NSDate *)lastUpdated;

- (NSArray *)pendingData;
- (void)registerNewTicket:(NSDictionary *)ticketInfo;
- (void)savePendingData:(NSArray *)data;

@end

And I am getting “Property declaration not in implementation or interface context”

  • 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-23T13:20:13+00:00Added an answer on May 23, 2026 at 1:20 pm

    The contents of the header file will be compiled wherever you include/import this header. Check to see that you aren’t importing Utilities.h in some other file where there is an error before the #import.

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

Sidebar

Related Questions

I keep getting this error: expected specifier-qualifier-list before ‘tcp_seq’ in my header file. Here
I keep getting the error: Type was not found or was not a compile-time
I keep getting this error - error C2819: type 'List' does not have an
I'm getting crazy with a small problem here, I keep getting an error and
i keep getting this error: Exception Details: System.NotSupportedException: Cannot serialize member HannaPrintsDataAccess.Customer.CustomerAddresses of type
I keep getting the error Conversion from string to type 'Double' is not valid
I am learning C# and keep getting an error Cannot implicitly convert type 'int'
I'm trying to use slime from CVS (2009-01-05) but keep getting this error: LOAD:
I want to rename a database, but keep getting the error that 'couldn't get
I keep getting a PermGen error on my Tomcat 6 server. I know what

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.