fix iOS 7- drawLabels error

The function
	- (void)drawInRect:(CGRect)rect withAttributes:(NSDictionary *)attrs
available only after iOS 7