I have a UIViewController (call it A) with a NSDate instance I'm already retaining and synthesize.
In another method I am creating another UIViewController (call it B) and wish to pass it the NSDate instance. In B, I am going to be using it. Should I be also be retaining and synthesizing this instance as well? I assume B will be using the same NSDate instance that A created, and there might be the chance that A's instance could be deleted in viewDidUnload if memory is running out.
On the other hand, if I retain and synthesize it, I'm going to deallocate it when B's view is gone. And when I return to A, the NSDate instance is gone.
So, what is the best practice here? Should I just create a new NSDate object in B and make it the same date as the one passed in? and retain/synthesize this new instance?