What does "Clear Graphics Context" means?
IosUiviewIos Problem Overview
In Xcode 4.3, when you choose some UIView object placed in .xib, you can find out there is an option saying "Clear Graphics Context". What does it means?
Ios Solutions
Solution 1 - Ios
> When it is checked, iOS will draw the entire area covered by the
> object in transparent black before it actually draws the object.
It is
> rarely needed.
Beginning IOS 5 Development: Exploring the IOS SDK, page 81, paragraph3.
Solution 2 - Ios
It will apply an OpenGL "clear context"
before starting the DrawRect function of the UIView:
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);