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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:03:02+00:00 2026-05-27T15:03:02+00:00

I have an object myObject in my UITableViewController set as one of its properties

  • 0

I have an object myObject in my UITableViewController set as one of its properties which I pass along to a custom UITableViewCell. I “pass it along” by then in turn setting it as a property on the cell. My question is, should this property on the UITableViewCell be weak or strong in iOS 5 using ARC?

I am confused because myObject is owned by the UITableViewController, which owns the UITableViewCell, which in turn has a reference to myObject. But there will never be a case where my UITableViewCell is alive without my UITableViewController being alive (which keeps myObject alive), so is there a need to have a strong pointer from the cell to the object?

I’m just slightly worried about circular references but there shouldn’t be one should there?

  • 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-27T15:03:03+00:00Added an answer on May 27, 2026 at 3:03 pm

    Probably only your controller should own the object strongly but your cell can retain it, too. It’s not a bug.

    Your strong references will be a tree, not a circle.

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

Sidebar

Related Questions

I'm really scratching my head on this one: I have an object (MyObject) which
I have an object which is structured as below public MyObject{ int SomeNumber {get;set;}
I have an object model MyObject with various properties. At one point, I have
I have object A which in turn has a property of type Object B
I have object A which contains multiple instances of object B, which in turn
I have an object like this: public class MyObject{ public int Prop1 {get;set;} }
I have an object and I need to pass its class to an annotation
I have a serialized object MyObject that contains integer foo. I set a value
I have one controller inheriting UITableViewController, and call the object as below editAlarm *ob
I have an object model MyObject that contains a nullable byte as one of

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.