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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:18:52+00:00 2026-05-26T22:18:52+00:00

A strange problem occured when i build my code on iOS5 which was properly

  • 0

A strange problem occured when i build my code on iOS5 which was properly working on 4.2.

The problem was with the tableview indexpath. I was trying to get the indexpath value in another method of same class which resulted in a crash in iOS5.

After 2 hours i manage to get it solve by making some changes which i thought to share.

.h file

NSIndexpath *indexPathValue;

@property(nonatomic, copy) NSIndexpath *indexPath;

.m file method cellForRowAtIndexPath

self.indexPathValue = indexPath;

And used the indexPathValue instance wherever required. Hope this help.

  • 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-26T22:18:53+00:00Added an answer on May 26, 2026 at 10:18 pm

    The property can have the retain attribute, not the copy attribute; it will work fine as long as you remember to use the setter method whenever you wish to assign it:

    self.indexPathValue = indexPath;
    

    Your current code copies the pointer without attempting to retain it in any way (you don’t use the synthesized setter method) and it will cause a crash some time later.

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

Sidebar

Related Questions

There is a strange problem occured in my application in which it's showing a
I am having a really strange problem implementing Java REST service. I am trying
A strange problem occurred yesterday on a production system which has been running fine
This is a strange problem that I am having with WCF trying to send
I have a strange problem, I'm using the code below to test for a
I have strange problem for which I can't think of a solution. I have
Strange problem I can't seem to get my head around. I have a table
I have a strange problem with Jquery Ajax with the following code. Situation 1:
Experienced a very strange problem today on our TFS2010 build server. Suddenly the build
Strange problem. My Query looks like SELECT DISTINCT ID, `etcetc`, `if/elses over muliple joined

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.