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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:50:51+00:00 2026-05-25T11:50:51+00:00

Just playing around with some sample code and hit on an unexpected problem with

  • 0

Just playing around with some sample code and hit on an unexpected problem with UITableViewDataSource.

My test app is the basic “Navigation Bar” iPhone template, to display a list. I’ve added an NSObject subclass to implement UITableViewDataSource, embedded this class into the RootViewController.xib and connected it to the TableView’s dataSource outlet.

The app starts up OK. DataSource gets initialised and table view is populated with first 10 rows. Log:

2011-05-11 10:20:03.367 JustAList[10562:207] JALMainViewDataSource init
2011-05-11 10:20:03.375 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.378 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.380 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.381 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.383 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.384 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.384 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.385 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.385 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>
2011-05-11 10:20:03.386 JustAList[10562:207] cellForRowAtIndexPath <JALMainViewDataSource: 0x5d23730>

Soon as I scroll however (ie. new cell is required) the app crashes:

2011-05-11 10:20:06.249 JustAList[10562:207] -[__NSCFTimer tableView:cellForRowAtIndexPath:]: unrecognized selector sent to instance 0x5d23730
2011-05-11 10:20:06.379 JustAList[10562:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFTimer tableView:cellForRowAtIndexPath:]: unrecognized selector sent to instance 0x5d23730'

It’s just called cellForRowAtIndexPath 10 times in a row without problem, now it says unrecognized selector?

Has it maybe got sth to do with the way that I’m initialising (ie. implicitly from nib)? Perhaps it’s being prematurely released? Hmm.. have ideas to check out, but wanted to post question here first before wasting too much time (I actually intended to try out sth completely different, wasn’t anticipating this problem!).

Hope someone can help?
Cheers!

  • 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-25T11:50:52+00:00Added an answer on May 25, 2026 at 11:50 am

    I solved this for myself almost immediately (see my own comment).

    Thanks for the reminder ‘idz’. I was unable to set it as answered immediately – if I remember correctly S.O. said I had to wait 24hrs before setting a question as answered.

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

Sidebar

Related Questions

i have some sample code i have been playing around with. Basically im just
I was just playing around with some code in LINQPad and managed to crash
I'm just playing around with some code. I create an Activity and simply do
I'm just starting out playing around with Linq Expressions and I've hit a wall.
Just playing around with some of the APIs in .NET and I can't seem
I'm just playing around with some PHP and was wondering what happens when an
So, I was just playing around making some page for fun. I cannot seem
Just playing around with the now released Silverlight 2.0. I'm trying to put a
I'm just playing around and I'm trying to grab information from websites. Unfortunately, with
I was just playing around with the python command line and the ** operator,

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.