If I have white text in my UITextField, the selection window (when selecting text) is invisible because the background on the little window is also white.
Any way to
Glass takes color from textView.backgroundColor. So I made some dirty hack that works great:
@interface FakeBgTextView : UITextView {
UIColor *_fakeBackgroundColor;
}
- (UIColor *)backgroundColor;
- (void)setFakeBackgroundColor:(UIColor *)color;
@end
@implementation FakeBgTextView
...
- (UIColor *)backgroundColor {
return _fakeBackgroundColor;
}
- (void)setFakeBackgroundColor:(UIColor *)color {
[_fakeBackgroundColor release];
_fakeBackgroundColor = [color retain];
}
...
@end