I use:
@property(nonatomic, weak) IBOutlet UIView *videoView;
there is a warning:
Property 'videoView' requires method 'videoView' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation
Then I try:
@synthesize videoView;
there is an error:
The current deployment target does not support automated __weak references.
And another question:
@property(nonatomic, unsafe_unretained) IBOutlet UIView *videoView;
- (void)dealloc {
videoView = nil;
}
Can I use this way?