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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:07:07+00:00 2026-06-08T07:07:07+00:00

Short Question There is a thing called Object in XCode’s interface builder’s Object Library.

  • 0

Short Question

There is a thing called Object in XCode’s interface builder’s Object Library. I wonder what kind of task can be achieved by using this “Object”.

Be specific, it is an NSObject in Storyboard (or xib). It’s described as follow:

Provides a template for objects that are not directly available in Interface Builder. You can turn this object into an instance of any class using the custom class inspector.

Long Question

I’m trying to build a UITableViewController along with a UISearchController. Since they both require implement the UITableViewDelegate and UITableViewDatasource in their delegate, I wish I can assign the delegate of UISearchController to an Object other than the Main UITableViewController.

I’m looking for a way to achieve this in Storyboard, rather than assign the delegate manually in viewDidLoad. Especially, by figuring out how the Object work in Storyboard.

I understand that I can distinguish them by exam the UITableView’s parents. But it is always good to separate the logic into different objects. It will be easier to implement, better efficiency, better structured and possible to be reused.

Thanks in advance.

What I have tried

  • Put an Object at the same level of the UITableViewController in the Storyboard (You cannot put the Object within another UIViewController).
    Link it with an @property (nonatomic, weak) IBOutlet NSObject * in the UITableViewController.
    The NSObject * turns out to be a nil pointer when I print it in viewDidLoad. No luck.
  • By changing the property to @property (nonatomic, strong), it become a UICustomObject instead of nil. Seems I’m on the right track.
  • 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-08T07:07:09+00:00Added an answer on June 8, 2026 at 7:07 am

    As you note, Object makes it so an object of any class, including your own custom class ,is instantiated when the XIB/Storyboard is loaded. The fact that you’re getting a UICustomObject indicates that the XIB/Storyboard loading machinery either doesn’t know what class the object should be, or can’t find the class (via runtime lookup) you’ve specified.

    The solution is to make sure you specify the right class for the Object in the custom class inspector:

    enter image description here

    Then of course you also need to make sure that the implementation file for the class in question is in your project and is included in your target.

    Finally, it’s correct to use strong for the IBOutlet pointing to your custom object, because it’s a top level object and top level objects should be referenced using strong properties. (If you’re really curious, Mike Ash has a good article about the specifics of XIB/Storyboard outlet memory management, including the differences between OS X and iOS in this regard.)

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

Sidebar

Related Questions

Short Question Is there a library that is supposed to replace mswinsoc.osx used to
Short version question : Is there navigator.mozIsLocallyAvailable equivalent function that works on all browsers,
The short question, is there an off the self function to make a graph
Short Question: Can I specify wildcards for custom console folding? If so, what is
Short question, is the following ok: struct X { A& x; A y; X()
Short question: Is it possible to detect window.open() in a UIWebView using the UIWebViewDelegate
Short Question: What is the importance of isomorphic functions in programming (namely in functional
Short question: Do any of MS's built in Data Objects support INotifyPropertyChanged? Long explination:
Short question - how do you define your view models? Here are some of
Short question: Is it possible to do a redirection, say when a user isn't

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.