How to dismiss the table view created in the root view controller in iphone?

Posted by Warrior on Stack Overflow See other posts from Stack Overflow or by Warrior
Published on 2010-04-01T10:04:25Z Indexed on 2010/04/01 11:43 UTC
Read the original article Hit count: 853

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.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about dismiss