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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:04:00+00:00 2026-05-23T20:04:00+00:00

this subject is similar to another i wrote BUT is different . strange things

  • 0

this subject is similar to another i wrote BUT is different .
strange things happen to me lately with cocos,things are just deleted .

i have a NSString value in cocos2d class, that is not nil inside animation function.
but when animation is done ,and she calls another function, it becomes null in that function.

-(void)animation
{   
    // animation loops .....
    //......
    CCAnimate *Action = [CCAnimate actionWithAnimation:dollAnimation];
    //calling finish animation here :
    id call=[CCCallFunc actionWithTarget:self selector:@selector(finishAnimation)]; 
    id sequence=[CCSequence actions:Action,[CCHide action],call,nil];
    [dollSprite runAction:sequence];
    basic_pic=[rowInDataBase objectAtIndex:1] ;
    NSLog(@"%@",basic_pic); 
    // here basic_pic has a good value!
}


//when animation is done(3sec) it calls this :  
    -(void)finishAnimation
    {
       NSLog(@"%@",basic_pic);    // null ! ! !
       NSLog(@"%@",rowInDataBase);    // null ! ! !


    }

how is that happen ???
basic_pic is NSString with no properties now.
i have to say that basic_pic gets his value frin array one function before animation, and when animation is being called,it still there,but next call to finish function,its gone!

  • 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-23T20:04:00+00:00Added an answer on May 23, 2026 at 8:04 pm

    Did you retain your basic_pic and rowInDataBase? If not, they were likely auto-released objects which got released when the current UIKit event completed.

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

Sidebar

Related Questions

I have seen many posts on this subject, but none have been answered, and
I know there are similar questions on this subject but nothing that quite answers
I did a lot of searching on this subject, but I couldn't find anything
I have a problem finding references to this subject and would appreciate some help.
I found a forum with this subject. Using enum as id But I couldn't
They brush the subject in this thread, but it does not really answer much:
I know there is many debates on this subject, but still ... I can't
Forgive me for my ignorance on this subject, but I'm a relatively seasoned php
I have the following situation and I know have a lot of this subject
This subject, as with any optimisation problem, gets hit on a lot, but I

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.