PDA

View Full Version : New iPhone SDK Replacement for [UIColor groupTableViewColor]




Littleodie914
Mar 28, 2008, 02:53 PM
Hey guys, in lieu of the new iPhone SDK, it seems many things are confusing, conflicting, etc. I've posted this particular issue in the news thread concerning the SDK release, but I thought it warranted its own thread.

So, in the old SDK, I could use the code:

[view setBackgroundColor:[UIColor groupTableViewColor]];

And it would set the background of the view to that cool blue and white striped background that you see in the "Settings" application. In the new SDK update though, the UIColor method "groupTableViewColor" was eliminated. (Contradictory to the Beta 1 to Beta 2 API Delta.)

So my question is, does anyone know of a way to replicate the above code, but in the new SDK? Thanks fellow MR programmers! :D

Edit: Solved. They apparently changed the method name to "groupTableViewBackgroundColor", but this method does *NOT* exist in the new UIColor.h header file. It exists in the API Delta. (But not under UIColor, under UIInterface.)



Sayer
Mar 28, 2008, 03:18 PM
There is a diff of changes between releases of the SDK.

If you have an iPhone dev account you can view it at this link:

http://developer.apple.com/iphone/library/releasenotes/Miscellaneous/RN-iPhoneBetaAPIDiffs/index.html

Littleodie914
Mar 28, 2008, 03:21 PM
There is a diff of changes between releases of the SDK.

If you have an iPhone dev account you can view it at this link:

http://developer.apple.com/iphone/library/releasenotes/Miscellaneous/RN-iPhoneBetaAPIDiffs/index.htmlYea, that's the API Delta I mentioned above. :) Thanks though!