How to dismiss the table view created in the root view controller in iphone?
- by Warrior
I am new to iphone development. I have created a navigation based application. In the rootviewcontroller class i have written the code for parsing a url and display the contents in the table.In the didSelectRowAtIndexPath method i have written code for playing the video.
NSURL *movieURL = [NSURL URLWithString:@"http://url of movie"];
if (movieURL)
{
if ([movieURL scheme])
{
MovietryAppDelegate *appDelegate = (MovietryAppDelegate *)[[UIApplication sharedApplication] delegate];
[appDelegate initAndPlayMovie:movieURL];
}
}
In the delegate class i have defined the initAndPlayMovie method.I used the Apple sample "movie player " for my reference .I want to dismiss the table view before the video is loaded and table view appear back as presentmodalcontroller on clicking "done" button on video player.I want my app to work like you tube application. Please help me out.Thanks.