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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:10:52+00:00 2026-06-09T22:10:52+00:00

I am following Facebook’s tutorial to post to a user’s wall: http://developers.facebook.com/docs/howtos/publish-to-feed-ios-sdk/ and although

  • 0

I am following Facebook’s tutorial to post to a user’s wall: http://developers.facebook.com/docs/howtos/publish-to-feed-ios-sdk/
and although it is made with a .xib project in mind, I have been able to do everything just fine with my storyboard project so far. However, I have come to the point where I need to put some code into the initWithNibName:bundle: method, but I cannot do this because I am using storyboard. And, since it’s hard to tell when exactly the method would be called, I can’t just write a method named initWithNibName:bundle: and call it from some other method. If anyone has any idea of how to solve my issue, please say so. Thanks.

  • 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-09T22:10:54+00:00Added an answer on June 9, 2026 at 10:10 pm

    I just ran into this problem myself. Storyboards appear to not use initWithNibName:bundle:, but either initWithCoder:(NSCoder *)aDecoder or initWithStyle:(UITableViewStyle)style.

    The default implementations of the two methods look like:

    - (id)initWithCoder:(NSCoder *)aDecoder
    {
        self = [super initWithCoder:aDecoder];
        if (self) {
            // Custom initialization
        }
        return self;
    }
    
    - (id)initWithStyle:(UITableViewStyle)style
    {
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        }
        return self;
    }
    

    I’ve yet to use the initWithStyle version myself, but I’d imagine it’s called for a UITableViewController. If in doubt, you could simply add both methods to the file, along with an NSLog() call that prints the method’s name (or any other unique string). You can then run it in the simulator to see which is called, and delete the other.

    I’d strongly recommend against calling initWithNibName:bundle: yourself from any of the other init methods. Better to just move the code to the correct method.

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

Sidebar

Related Questions

I'm following the android facebook tutorial at: http://developers.facebook.com/docs/mobile/android/build/ I'm at step 7, adding a
After following these steps: http://developers.facebook.com/docs/mobile/android/build/ I find that everything goes well, but when I
I'm following the following tutorial for Facebook Connect: https://developers.facebook.com/docs/mobile/android/build/ And attempting to allow my
Per the documentation located here: https://developers.facebook.com/docs/opengraph/news/ I should be able to post a news.reads?article
I'm following the lithium facebook connect tutorial http://www.shift8creative.com/blog/facebook-connect-and-lithium I get the following errors when
I have the following Facebook iframe as part of the template: <iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot;
My following code for posting the UIImage to user's facebook wall is not working
I have the following page I want to show in facebook app: http://www.facebook.com/mypage I
I am using following code to post image on Facebook wall. it's working fine.
I'm following Facebook's iOS tutorial for logging out . I added the tutorial's code

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.