Question 1)
I have a navigation based application where clicking on an entry opens a second view with the details of that entry.
It's working now with the following code
[self.navigationController pushViewController:descriptionController animated:YES];
[self.descriptionController.textView setText:[s description]];
self.descriptionController.title = [s name];
But, if I switch the first and third statements, then the very first time I click on an item, the details view shows Lorem Ipsum text. After the first time, it works as expected. I thought it would be more correct to do it that way. Why would it show Lorem Ipsum for the first view, but not anything after that?
Question 2)
Additionally, my textView element is part of the details view. In my controller class for the view I have:
@property( nonatomic, retain) IBOutlet UITextView *textView;
But if I change this to
@property( nonatomic, copy) IBOutlet UITextView *textView;
Then it crashes. I wouldn't think it would crash, but I'm thinking it just creates new instances just taking up memory for nothing. Can anybody explain this?