I try to show 256 colors in iphone or even more colors
At first ,I use photoshop to generator some simple color png file
Than I add this png to an array and set it as a button picture
This is what I done now
This is the code how I add color into array
imgArray = [NSArray arrayWithObjects:
[UIImage imageNamed:@"Icon0.png"],
[UIImage imageNamed:@"Icon1.png"],
[UIImage imageNamed:@"Icon2.png"],
[UIImage imageNamed:@"Icon3.png"],
[UIImage imageNamed:@"Icon4.png"],
[UIImage imageNamed:@"Icon5.png"],
nil];
Than I add this to button image
This is the result on my simulator , but this is not a good solution
It waste too many time to add png file (also waste iphone memory...)
Does anyone can help me to figure this problem ???
MANY THANKS : )