Try using presentModalViewController to show your view, and then dismiss it from the modalViewController: (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailView *detailView = DetailView alloc initWithNibName:@"DetailView" bundle:nil; self presentModalViewController:detailView animated:YES; }.
Try using presentModalViewController to show your view, and then dismiss it from the modalViewController: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailView *detailView = DetailView alloc initWithNibName:@"DetailView" bundle:nil; self presentModalViewController:detailView animated:YES; }.
So I am trying to add in to my current Xcode project a table view which, whenever you click on a cell, whichever one it is, a new subview is added to the window. I will use global variables and the didSelectRowAtIndexPath to pass data on. As it stands, I have my table view drawn on screen with the correct data inside.
What I want to happen is when I click, a new subview is added but I cannot seem to get this to work. I have tried adding the "addSubview" inside the didSelectRowAtIndexPath method itself and this did not work and I have tried declaring a separate method that loads a subview called 'loadDetails' then calling it with self loadDetails when a cell is selected but it wants an id after the call and I don't know what to pass in. But I can't see how to adapt this to the tableCell unless I could somehow add a new button over the cell?
I really don't know.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.