learningtech
learningtech

Reputation: 33683

how to assign hex value to a variable in objective c

This is a very newb question...

??? hexvalue = 0xFFFFFF;

What do I replace ??? with?

Upvotes: 2

Views: 5818

Answers (1)

Joshua Weinberg
Joshua Weinberg

Reputation: 28688

0xFFFFFF is identical to saying 16777215, what type would you put for 16777215?

They're just numbers, so int32_t, NSInteger, NSUInteger, long, etc are all valid.

Upvotes: 4

Related Questions