Hi Forum,
I have a bit of an issue here. So i have a UIViewController and it has a UIView property in which i draw stuff in and such. Now i have a UITableViewController with a UITableView and in my i want to have a custom cell in which i want to have "thumbnail" of the UIView. Each row is a Y= graph function.. etc y=2x. I have a delegate method which UITableViewController subclass calls and my UIGraphViewController implements in which i simply did...
but the problem is that once i do get the object in my UITableViewController sublclass.....well its passed by reference clearly so if i modify it the original view gets modified too. and it goes away when you go back to it. Please help
I have a bit of an issue here. So i have a UIViewController and it has a UIView property in which i draw stuff in and such. Now i have a UITableViewController with a UITableView and in my i want to have a custom cell in which i want to have "thumbnail" of the UIView. Each row is a Y= graph function.. etc y=2x. I have a delegate method which UITableViewController subclass calls and my UIGraphViewController implements in which i simply did...
Code:
-(UIView *)calculatorProgramsTableViewController:(CalculatorProgramTableViewController *)sender wantsFavProgramThumbnail:(id)program
{
self.program = program; //makes graphview (UIview object) draw the function first
return self.graphview; // returns the UIview object
}
but the problem is that once i do get the object in my UITableViewController sublclass.....well its passed by reference clearly so if i modify it the original view gets modified too. and it goes away when you go back to it. Please help