With ARC, you do not need to think about release/retain
.
Since your variable will be implicitly defined as strong
, there is no need to set it to NULL
- it will be released before it is assigned.
Personally, although I prefer to declare properties:
@property (strong, nonatomic) UIView *currentView;
source share