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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:24:30+00:00 2026-06-13T10:24:30+00:00

Ok, it may be a dumb mistake. But I can’t figure out what xcode

  • 0

Ok, it may be a dumb mistake. But I can’t figure out what xcode wants from me.

So here is the header file

#import <Foundation/Foundation.h>
#import "TableViewController.h"

@end
@interface Settings : NSObject

- (id)init: (TableViewController*) TableControll;

@end

If there is no @end before interface it says expected identifier or (, and suggests adding @end there. If there is an @end it says end must appear in objective-c contex.

Ideas?

#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMessageComposeViewController.h>

@interface TableViewController :     UIViewController<UITableViewDataSource,UITableViewDelegate,MFMessageComposeViewControllerDelegate>
{
    ControllerType controllerType;
}

@property (retain, nonatomic) IBOutlet UITableView *tableView;
@property (retain, nonatomic) NSArray *dataArray;
@property (retain, nonatomic) NSArray *imageArray;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil andType:(ControllerType)type;

@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-06-13T10:24:31+00:00Added an answer on June 13, 2026 at 10:24 am

    You have a @end before the @interface declaration in your Settings.h file.

    It should read:

    #import <Foundation/Foundation.h>
    #import "TableViewController.h"
    
    @interface Settings : NSObject
    
    - (id)init: (TableViewController*) TableControll;
    
    @end
    

    Also, you haven’t included the #import directive for ControllerType in your TableViewController.h which may be why you’re getting obscure errors in your Settings.h file.

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

Sidebar

Related Questions

This may be a dumb question, but I cannot figure it out. Doing gjslint
May be it sound dumb but if I want some computed value from other
this may be a dumb question, but I can't seem to find the answer.
This may seem like a dumb question, but can an app build with c#
This may be a very dumb question but I can't seem to get it
I'm probably making a dumb mistake here, but I've been staring at my code
This may be a dumb question, but I can't seem to find an answer
This may be a very dumb question, but how can I pass a parameter
It may be a dumb question, but I can't find an answer to this
This may be a dumb question, but I couldn't find it anywhere: How can

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.