Error using special keyboard with UITextView

I started an Xcode project using a "single view" application template and added two lines to the ViewController class the template creates in viewDidLoad:

UITextView *textView = [[UITextView alloc] initWithFrame:CGRectInset(self.view.bounds, 10, 10)]; [self.view addSubview:textView]; 

In the simulator, I turned on the "Chinese simplified" Stroke keyboard.

When I use UITextView, switch to this keyboard and tap ^ _ ^ , the following errors will appear on the console:

 <Error>: CGContextSaveGState: invalid context 0x0 <Error>: CGContextDrawLinearGradient: invalid context 0x0 <Error>: CGContextSetFillColorWithColor: invalid context 0x0 <Error>: CGContextFillRects: invalid context 0x0 <Error>: CGContextFillRects: invalid context 0x0 <Error>: CGContextSetFillColorWithColor: invalid context 0x0 <Error>: CGContextFillRects: invalid context 0x0 <Error>: CGContextSaveGState: invalid context 0x0 <Error>: CGContextDrawLinearGradient: invalid context 0x0 <Error>: CGContextSetFillColorWithColor: invalid context 0x0 <Error>: CGContextFillRects: invalid context 0x0 <Error>: CGContextFillRects: invalid context 0x0 <Error>: CGContextSetFillColorWithColor: invalid context 0x0 <Error>: CGContextFillRects: invalid context 0x0 

This is mistake? Should I worry about this?

+2
ios objective-c cocoa-touch uitextfield uitextview
source share
2 answers

I reproduced the error in the iOS 6.0 simulator and on my iPhone 4S with iOS 6.0.1, but this does not happen in the iOS 5.0 simulator. This is a bug in iOS 6. You should open a bug report at http://bugreport.apple.com .

However, this does not seem particularly harmful, so I will not worry about it.

+4
source share

this also happened in the iOS 7.0.3 simulator when I turned on the "Chinese simplified" keyboard.

but disappeared in iOS 7.1 simulator and iOS 8 simulator.

0
source share

All Articles