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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -