I am little confused about specifying strong, copy, or assign and not specifying them. We don't use NIB files. My colleague always use following - he says iOS detects it and use it automatically strong, weak etc.
@interface viewController : UIViewController
@property (nonatomic) UIImageView *imageView1;
@property (nonatomic) NSUInteger num;
@property (nonatomic) NSArray *array;
@end
I prefer following way doing it.
@interface viewController : UIViewController
@property (nonatomic, strong) UIImageView *imageView1;
@property (nonatomic, assign) NSUInteger num;
@property (nonatomic, copy) NSArray *array;
@end
Which one is better programming style? First option always have strong type as it defaults but I always specifies them explicitly.