+11  A: 

The generic color space is deprecated. Instead try;

CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();

Andrew Grant
thx for the answer I love you
Unreality
A: 

I failed to say it clearly a moment ago, see my question at this link: http://stackoverflow.com/questions/561663/pull-out-the-rgb-component-from-bitmapcontext-on-iphone

iPhoney