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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:53:50+00:00 2026-06-06T13:53:50+00:00

This is my first post, thx, you’ve been very helpful. But I’m stuck. I

  • 0

This is my first post, thx, you’ve been very helpful. But I’m stuck. I tried to implement : xcode init controller with data

when I initialize my controller with the new parameter I get : No visible @interface for ‘VisiteViewController’ declares the selector ‘initWithNibName:bundle:texte:’

in VisiteViewController.m I’ve got :

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil texte:(NSString *)chaine{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
    // Custom initialization
}
return self;}

and I call it like this:

- (IBAction)goToVisite: (id)sender{
NSLog(@"Button pushed");
VisiteViewController *visiteViewController = [[VisiteViewController alloc] initWithNibName:@"VisiteViewController" bundle:nil texte:@"lkj"];
[self.navigationController pushViewController:visiteViewController animated:YES];
}

Thx for your help

  • 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-06T13:53:52+00:00Added an answer on June 6, 2026 at 1:53 pm

    Hi and welcome to StackOverflow!

    As @janusfidel mentioned, you need to add the declaration to the header (.h) file.

    You did not change a method, you created an entirely new one (that – just coincidentally – has a name that looks a bit like one of the existing methods, but the computer has no concept of that). You now have to announce to everybody using your class that there is a new method whose selector (name, basically) is initWithNibName:bundle:texte:. This does not overwrite, remove, or otherwise interact with the method initWithNibName:bundle:, nor with the method init or any other method. The similarity in names is basically just there to give the human reader (i. e. you) a clue as to what those methods do[1].

    Please do not take this personally, but do yourself a favor and get a good book on programming in Objective-C (or object-oriented programming in general). This will make your first steps a lot easier and faster. The Big Nerd Ranch Guides are an excellent series of books, and I would recommend you to buy iOS Programming: The Big Nerd Ranch Guide as soon as you can.

    [1]: Technically, there are some naming guidelines that also give clues to the compiler on how to handle memory management in Objective-C, but going into that would just be confusing for now.

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

Sidebar

Related Questions

This is my first post, I'm new to this site, but I've been lurking
this is my first post here on stackoverflow and am very impressed by the
this is my first post on this website, but I'm all the time getting
This is my first post here so if I've been mistaken for my post
This is my first post here. I have been reading posts here since I
This is my first post at this site. I searched alot but couldn't find
This is my first post in this forum, so please, be patient with me.
This is my first post and I my first experience with jquery. I have
This is my first post on stackoverflow, so please excuse me if my question
This is my first post here so go easy. I am trying to build

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.