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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T06:00:13+00:00 2026-05-19T06:00:13+00:00

CAGradientLayer *grad = [CAGradientLayer layer]; grad.colors = $array(ColRGBA2(1, 0, 0, 1), ColRGBA2(0, 1, 0,

  • 0
 CAGradientLayer *grad = [CAGradientLayer layer];
 grad.colors = $array(ColRGBA2(1, 0, 0, 1), ColRGBA2(0, 1, 0, 1), ColRGBA2(0, 0, 1, 1), ColRGBA2(0, 0, 0, 0));
 grad.startPoint = CGPointMake(0, 0);
 grad.endPoint = CGPointMake(1, 0);


 grad.colors = $array(ColRGBA2(1, 0, 0, 1), ColRGBA2(0, 1, 0, 1), ColRGBA2(0, 0, 1, 1), ColRGBA2(0, 0, 0, 0));   

in this sentence have a dollar sign what does this mean?any links about it?

  • 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-19T06:00:14+00:00Added an answer on May 19, 2026 at 6:00 am

    That’s not a feature of the language, these are convenience intializers for collections that some people use. For example:

    $array(foo, bar, baz)
    

    expands to:

    [NSArray arrayWithObjects:foo, bar, baz, nil]
    

    I’m not sure if it’s worth the trouble. And I don’t have a link to the library that provides these macros, maybe somebody else does?

    By the way, it looks like we will have official literals for arrays, dictionaries and some other objects in Xcode 4.4. The details appear to be under NDA at the moment, but there’s some discussion at Hacker News.

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

Sidebar

Related Questions

I have a UIView & I want that view's layer to be a continuously
I'm experimenting with using cagradientlayer to draw gradients in our app instead of having
I have a custom UIView that is composed entirely of CALayers. In the awakeFromNib
I have a custom UITableView cell which has a button and a label. I
I have the following code and I can't seem to get it to work.
I am trying to do something that should be really simple. I want to
filling a path with a solid color is easy enough: CGPoint aPoint; for (id
I would like to animate a radial gradient to shrink and grow the inner
I am drawing content to a UITableViewCell and it is working well, but I'm
I am trying to move some custom drawing code from a view into a

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.