1

Can UIProgressView be inherited?

I created a sub-class of UIProgressView; it works well. But the console shows the following errors when the sub-class calls [super init] or [super initWithFrame:frame]:

<Error>: CGContextAddPath: invalid context 0x0. 
<Error>: clip: invalid context 0x0. 
<Error>: CGContextDrawLinearGradient: invalid context 0x0.
<Error>: CGContextAddPath: invalid context 0x0. 
<Error>: clip: invalid context 0x0.
<Error>: CGContextDrawLinearGradient: invalid context 0x0.

How can I solve this problem?

Toby Speight
  • 27,591
  • 48
  • 66
  • 103
Bluelich
  • 11
  • 2

0 Answers0