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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:03:28+00:00 2026-06-13T08:03:28+00:00

I installed everything according to README file and imported all necessary libraries. Still, when

  • 0

I installed everything according to README file and imported all necessary libraries. Still, when implementing this method:

- (CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)index {
    CPTMutableTextStyle *labelText = nil;
    labelText= [[CPTMutableTextStyle alloc] init];
    labelText.color = [CPTColor grayColor];

    return [[CPTTextLayer alloc] initWithText:@"Test" style:labelText];
}

I receive errors:

ARC Semantic issue - Receiver 'CPTTextLayer' for class message is a forward declaration
and
ARC Semantic issue - Receiver 'CPTTextLayer' for instance message is a forward declaration

I read in many posts, that this is the fault of missing Quartz library, though I have it imported in the project and included in the class: #import <QuartzCore/QuartzCore.h>.

When I return nil instead of this, everything works, but hey, I need those data labels to work!

Anybody knows how to make it work?

  • 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-13T08:03:29+00:00Added an answer on June 13, 2026 at 8:03 am

    Normally forward class error comes when that particular class is not imported in the current class and an @class is declared in .h file. If @class is also not present, it normally gives an unknown type error. So in this case as mentioned in comments, it is clear that the import statement for CPTTextLayer is missing.

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

Sidebar

Related Questions

I have mysql installed on my mac (running OSX Snow Leopard). According to everything
I installed everything necessary to start the development for blackberry on mac but I
Installed Android SDK and Eclipse. Everything was setup according to the instructions however when
I just installed XCode 4.2, according to to everything I have read ARC is
Just started learning how to use paper_clip. I installed everything according the instructions and
I have a Windows 7 laptop, and I think I installed everything correctly, and
Just installed EE everything seems clear however I can't seem to find a solution
I wrote a package that has dependency in keyring. Everything is installed fine with
I installed xcode 4.3.1 yesterday and everything seemed to work fine. I was able
I installed gvim on windows vista and got really excited to edit EVERYTHING with

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.