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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:11:57+00:00 2026-06-15T20:11:57+00:00

I am doing a Apple Developer Tutorial and I have a couple basic questions

  • 0

I am doing a Apple Developer Tutorial and I have a couple basic questions about the lines of code at the bottom:

  1. Neither one of these lines of code alloc and init the objects that they create? Is this because the objects are assigned values at their creation?

  2. The dequeueReusableCellWithIdentifier method – Is the only way that this method returns nil is if there is no cell object with the same name as the cell identifier parameter? What if there was no cell in the pool that it could reuse, does it then create one or return nil? The documentation states that the method returns – A UITableViewCell object with the associated identifier or nil if no such object exists in the reusable-cell queue.

Thanks ahead of time for the help

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

BirdSighting *sightingAtIndex = [self.dataController objectInListAtIndex:indexPath.row];
  • 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-15T20:11:59+00:00Added an answer on June 15, 2026 at 8:11 pm

    From the comments….

    The lines of code you posted don’t actually create anything; they get references to things that have been created elsewhere. Something else — either your code or framework code — already instantiated them with alloc/init and is now giving you access.

    In the table view example, if you registered a class/nib with your table view then it creates the cell for you. If not, then you create it when dequeueReusableCellWithIdentifier: returns nil. Either way, when it returns non-nil, that’s an object that was created at some point other than the one where your program is at that moment.

    (The self.dataController one isn’t something I recognize but the same logic must apply…either its list is being pre-populated by something you do earlier or it’s generating things and giving them to you as you ask.)

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

Sidebar

Related Questions

I was following the tutorial at developer.apple.com for learning Cocoa, and I found something
I have just gotten an email (20th Feb) from the Apple developer portal saying
I was doing the Apple Core Data Tutorial , and on the first occasion
http://developer.apple.com/library/ios/#samplecode/Touches/Introduction/Intro.html I'm new to IOS development, and have been playing around with the IOS
All, In Apple's sample code DateCell http://developer.apple.com/library/ios/#samplecode/DateCell/Introduction/Intro.html the ivar pickerView is declared in MyTableViewController.h
I was propted by apple to upgrade my debugger settings yesterday, In doing so
I'm doing a webpage about apples (the fruit), I want to include Google search
Doing an ajax get request works as expected using the following code: $.ajax({ type:
Doing some jquery animation. I have certain divs set up with an attribute of
let me first off noting that I have absolutely no idea what I'm doing

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.