I've been using the new nullability stuff in Xcode 6.3
However, I'm running into an issue like this
[Object doSomethingWithNonNullParam:otherObject.nullableProperty];
Whats the best way to solve this If I'm confident otherObject.nullableProperty
is not nil
?
I think a cast here is appropriate?
[Object doSomethingWithNonNullParam:(OtherObject *_Nonnull) otherObject.nullableProperty];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With