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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:19:22+00:00 2026-06-05T11:19:22+00:00

I’m getting an error in an iOS App with Cocos2d. Here it is. First,

  • 0

I’m getting an error in an iOS App with Cocos2d. Here it is.

First, I create a Label:

         CCLabelTTF *_alertaGC;

         ...
         ...

        _alertaGC = [CCLabelTTF labelWithString:@"" fontName:@"Marker Felt" fontSize:16];
        _alertaGC.color = ccc3(0, 0, 0);
        _alertaGC.position = [self convertiPad:ccp(110, 220)];
        _alertaGC.anchorPoint = CGPointMake(0.5f, 0.5f);

        [self addChild:_alertaGC z:100];

Pressing a button, I change the string of that label:

...
_alertaGC.string = NSLocalizedString(@"LogFirst", @"Logueate primero");
...

But I’m getting an error when pressing the button. It just happens since I Updated Cocos2d from 0.99 to 2.0rc… So I think something has changed, o something is wrong. It has to be something stupid, but I don’t get it…

Here is the log:

2012-06-12 04:01:53.343 AwNoth[2286:707] *** Terminating app due to uncaught
 exception 'NSInvalidArgumentException', reason:
 '+[CCLabelTTF labelWithString:dimensions:fontName:fontSize:]: unrecognized selector
 sent to class 0xff6ec'
*** First throw call stack:
(0x330f388f 0x35098259 0x330f692f 0x330f5915 0x33050650 0xb020f 0xae2ff 0x330521fb 0x39129 0x36649 0x34271 0x3304d3fd 0x80923 0x80fd1 0x7f569 0x3561492b 0x35614319 0x355fa695 0x355f9f3b 0x3319722b 0x330c7523 0x330c74c5 0x330c6313 0x330494a5 0x3304936d 0x33196439 0x35628cd5 0xa7c4b 0x2ef8)
terminate called throwing an exception(lldb) 

Thank you!

  • 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-05T11:19:23+00:00Added an answer on June 5, 2026 at 11:19 am

    Notice that version 2.0rc is considered unstable for now. I do not have this version but I advise you to simply look in the source code of CCLabelTTF and see how the class methods are declared.

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

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am writing an app with both english and french support. The app requests
I'm trying to create an if statement in PHP that prevents a single post
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.