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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:34:38+00:00 2026-06-05T08:34:38+00:00

I am new in iOS. I want to use CAEmitterLayer, which is only support

  • 0

I am new in iOS. I want to use CAEmitterLayer, which is only support by iOS 5, but my app should support iOS 4 and above. I am using [UIDevice currentDevice].systemVersion
to check the version, but it crashes.

Here is the code:

@class CAEmitterLayer;

@interface FireView : UIView

@property (strong) CAEmitterLayer *fireEmitter;
@property (strong) CAEmitterLayer *smokeEmitter;

- (void) setFireAmount:(float)zeroToOne;
@end

// create the FireView if iOS>=5.0

if ([[UIDevice currentDevice].systemVersion doubleValue] >=5.0) {
            FireView *fireView = [[[FireView alloc] initWithFrame:CGRectMake(0, 95, 100, 280)] autorelease];
            [self.view addSubview:fireView];
}

The problem is it crash before I create the FireView.

error:dyld: Symbol not found: _OBJC_CLASS_$_CAEmitterCell

even I don’t include the FireView.h file, still crashes.
Should I create both iOS4 and iOS5 version?

Can you give me some advice?
Please help. Thank you very much.

  • 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-05T08:34:40+00:00Added an answer on June 5, 2026 at 8:34 am

    You can check to see if CAEmitterLayer class is available on current device’s iOS version by:

    if (NSClassFromString(@"CAEmitterLayer"))
    {
    // available
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new in iOS. I want to use iToast in my App. I
I'm new to IOS development, sometimes I use a function but ignore its Doc.
I'm new ios developer, I want to compare and change attributes Array1 = (object1,object2,
I am new in ios development. I want to develop custom navigation button method.
I'm new to iOS programming. I want to know how a database is created
I am new to iOS development. I want to develop a screenshot application in
I am new iOS development but I know android at eclipse. For example I
I'm using the new iOS 5 core data concurrency options. I have two threads:
I'm using one of the new iOS 5 features for a UIAlertView. I create
I will preface the question with I am new to iOS and could use

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.