objective c - Nullable specifier syntax -
i've got property. declaration follows:
@property (nonatomic, copy) nsstring* inputroute;
the compiler whining @ me lack of nullability specifier have used elsewhere. original attempt
@property (nonatomic, copy) nullable nsstring* inputroute;
which matches syntax used method arguments. unfortunately, compiler gave syntax error. subsequently moved forward 1 token @ time until right @ end , compiler threw syntax error.
where supposed put make compiler shut up?
@property (nonatomic, copy, nullable) nsstring *string1; @property (nonatomic, copy, nonnull) nsstring *string2;
see nullability , optionals in using swift cocoa , objective-c (swift 2)
Comments
Post a Comment