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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:59:12+00:00 2026-06-17T10:59:12+00:00

I have a created custom table view cell class named CustomCell which inherits from

  • 0

I have a created custom table view cell class named CustomCell which inherits from UITableViewCell.

I have also created xib file for the cell named CustomCell.xib.
In the xib file, I have specified custom class to be the CustomCell,
and also set the file’s owner to be CustomCell class.

Now, I have connected the some button touchUpInside to be handled in the file’s owner which is CustomCell.

I load the cell with the following code in my table view controller:

NSArray *topLevelObjects = [[NSBundle mainBundle] 
  loadNibNamed:@"CustomCell" owner:nil options:nil];

cell = [topLevelObjects objectAtIndex: 0];

As you can see, the loaded cell does not have owner (owner:nil parameter),
and the problem is that I need the owner to be set to cell itself.

How can I set the owner for the cell explicitly?

Is there some other way to load xib and to make that cell instance become owner to itself?

  • 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-17T10:59:13+00:00Added an answer on June 17, 2026 at 10:59 am

    If your cell and your button are both in the same nib, you can just make the connection between them inside the nib.

    The “file’s owner” proxy is just there to help you make a connection to an object that isn’t in the nib. “File’s owner” is just a proxy for the owner of this nib at runtime.

    But since the two objects you wish to connect are both inside the nib already, you can just make that connection directly.

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

Sidebar

Related Questions

I've a custom table view cell that I created using XIB: I've also linked
I have a UITableView with custom cell. I have created seperate class with xib
I have a custom tableview cell created programmatically that consists of: a background view
I have created a custom cell for loading into a table. The interface is
I have a custom table created which has a foreign constraint on the core_website
I have created custom cell in which there are n number of image views.
I have created a custom UITableViewCell , but when I dequeue the cell, sometimes
I have a custom class inheriting from UITableViewCell class that shows either an image
i have created a custom UITableViewCell , but when I dequeue the cell, sometimes
I've created my own custom Table View Cell comprising of a number, an image

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.