2

I'm trying to implement graph in my app. I had used this graph library in my app. It's working properly, but it shows following warning for 15-20 time in console.

CGContextSetLineDash: invalid dash array: at least one element must be non-zero.
Ankita Shah
  • 2,178
  • 3
  • 25
  • 42

1 Answers1

3

You should post what are the argument values.

As I can assume from the error message, your arguments has 0 and is not allowed. Read CGContextSetLineDash about the dash options.

// This dash shouldn't be zero
line1.lineDashLengths = [0, 0]
stan liu
  • 1,712
  • 1
  • 11
  • 14
Wingzero
  • 9,644
  • 10
  • 39
  • 80
  • Thanks @wingzero. You are correct. My code contains lineDashLengths = [0.0, 0.0]. On commenting it all the warning removed. – Ankita Shah Dec 17 '15 at 02:56