0

How do I fix this?

//Nil is not compatible with expected argument type 'CGPDFPage'
CGContextDrawPDFPage(obContext, nil) 

Using Xcode 8 and have not converted to swift3 syntax yet.

swiftBoy
  • 35,607
  • 26
  • 136
  • 135
George Asda
  • 2,119
  • 2
  • 28
  • 54
  • That function takes a `CGContext` and a `CGPDFPage`. What are you expecting it to do passing `nil` to the second argument? – dan Aug 27 '16 at 00:53
  • I'm expecting to pass nil – George Asda Aug 27 '16 at 07:43
  • But what do you think that method is going to do if you pass it `nil`? It doesn't make any sense. Why call it all if you want to pass it `nil`? – dan Aug 27 '16 at 15:17

0 Answers0