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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:59:15+00:00 2026-05-20T12:59:15+00:00

I have unsuccessfully tried to get an instance of a custom UITableViewCell in order

  • 0

I have unsuccessfully tried to get an instance of a custom UITableViewCell in order to unit test it with the SenTestingKit framework. This is the code I used in my testing class:

CustomTableViewCell *cell =  nil;
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomTableViewCell" owner:self options:nil];

for (id oneObject in nib) 
    if ([oneObject isKindOfClass:[CustomTableViewCell class]])
        cell = (CustomTableViewCell*)oneObject;

I know it loads the NIB properly because the array nib contains an instance of the class CustomTableViewCell at its first position but i haven’t managed to get it out of the array at all.

Has anyone achieved the testing of UITableViewCell ? Does anyone know a workaround for this?

Any help or directions would be immensely appreciated

EDIT:

I have solved the issue using the initWithStyle:reuseIdentifier: method to initialize the UITableViewCell class instance.

  • 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-05-20T12:59:16+00:00Added an answer on May 20, 2026 at 12:59 pm

    If you are running these tests out of container (simulator), anything that relies on loadView being called is likely not going to be testable. I recommend unit testing that which can be tested out of container only.

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

Sidebar

Related Questions

I have tried unsuccessfully to copy the pwd to pbcopy as follows pwd |
I am new to the encryption process and have tried unsuccessfully to install an
I have tried the following command unsuccessfully: git push 12.12.12.123:/proj.git master It asks my
I installed python-mysqldb using sudo apt-get install python-mysqldb I have tried to use it
I have tried this for HOURS. There must be a simple solution to stop
I have unsuccessfully attempted to get GPS Location to work for my app under
I have been trying to setup git for our web development team unsuccessfully. Some
have written this little class, which generates a UUID every time an object of
I'm trying to get benefits of view collation in CouchDB unsuccessfully, could some one
This question is based on the thread . I have the following Git-prompt at

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.