I am very new to iPhone application development.
I am trying to close/remove one view from another view but some how it is not working for me.
How should i close/remove view controller from a another view controller.
There are two views A and B.
View A is opening view B using following code.
ViewBScreenController *mViewB = [[ViewBScreenController alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:mViewB animated:YES];
But some how i am not able to close view B from view controller A.
How to do it?
—-UPDATE—-
As asked in the answers why i need to close view B from view A, as i am getting events from underneath application layer to view controller A and on some events i want to close view B from view A.
Also is it possible to send some events to view B to close itself.
Thanks.
in A
in B or C or D etc….
its will do the trick