I am trying to call a method that returns a double
using NSInvocation
. But I found that it does not working in 64 bit iOS apps. It works on on OS X, in
Wow this is still apparently broken today and now in the simulator too (where I'm testing it). I got bit by this bug today, found my double arguments were always coming back zero in the selector of the invocation.
In my case it was easy to just send it as an NSNumber with @(myDouble) as the argument and then on the other side unwrap it with myNumber.doubleValue
Nasty.