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

  • Home
  • SEARCH
  • 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 3634984
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:50:50+00:00 2026-05-19T00:50:50+00:00

i am using a custom uitablecellview like i used to do .But ,unfortunately ,this

  • 0

i am using a custom uitablecellview like i used to do .But ,unfortunately ,this time an exception is thrown when a new cell appears.So,the same portion of code have worked perfectly many times before .The only difference is that the quality of images that i put into cells is very high.
Did you have ideas?or should i explain more?
Edit
some code:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"CellView";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    [[NSBundle mainBundle] loadNibNamed:@"SPViewControllCell" owner:self options:nil]; 
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
    cell=cellView;
    self.cellView=nil;
}
UILabel *itemTitle=(UILabel*)[cell viewWithTag:1];
[itemTitle setFont:[UIFont fontWithName:@"Renaissance" size:24]];
itemTitle.text=[titles objectAtIndex:indexPath.row];

UIImageView *img=(UIImageView*)[cell viewWithTag:2];
img.image=[images objectAtIndex:indexPath.row];

return cell;

}

The exception :
“‘NSInvalidArgumentException’, reason: ‘-[UITableViewCell objectAtIndex:]: unrecognized selector sent to instance 0x5f36be0’
”
Thank you.

  • 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-19T00:50:51+00:00Added an answer on May 19, 2026 at 12:50 am

    I’m guessing but is titles an array created with something like:

    -(void) viewDidLoad(){
       // this will give you an autoreleased object
       titles = [NSArray arrayWithObjects:@"Foo",...];
       // titles will be released once the current event is handled
    
    
       // try the alloc/init style method
       titles = [[NSArray alloc] initWithObjects:... ];
       // this will create an array with the retain count still at 1, thus won't be released
    

    Same goes for images.

    What you have is the classic memory management issue where a reference you think points to say an NSArray but in fact that array is long gone and happenes to have be replaced my a some random other object.

    For completness:

    - (void) viewDidUnload {
        // clean up after your self 
        [titles release];
        [images release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using custom renderer on JList, but none of components rendered are accessible. list.setCellRenderer(new
I am using custom model binder in ASP.NET MVC 2 that looks like this:
I'm using custom widget in my crud form like this: {{=form.custom.begin}} {{if condition:}} {{=form.custom.widget.field1}}
I am using custom permissions in my Django models like this: class T21Turma(models.Model): class
I want to Create a new User using Custom Membership Provider but I don't
In WCF service I would like to handle errors and exception using custom fault.
I have been using custom swc based components for my new flash game. I
Am using custom cell in my tableview with background image. when the orientation changes
I'm using custom SMTP servers and would like to verify the connection when user
Let's say were using custom extensions of the Exception class to handle custom exceptions,

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.