I\'m creating a color object using the following code.
curView.backgroundColor = [[UIColor alloc] initWithHue:229 saturation:40 brightness:75 alpha:1];
I wanted to get the background color of the UITableViewStyle "UITableViewStyleGrouped" so in the viewDidAppear: method I added the code:
NSLog(@"%@", self.tableView.backgroundView.backgroundColor);
It did what I anticipated and returned the log:
UIDeviceRGBColorSpace 0.937255 0.937255 0.956863 1
So in short just type in NSLog(@"%@", [UIColor whateverColor]);