I want to create an app to run local audio files on the iPhone but I'm stuck with some of my code . I'm thinking how you can push a scene, come back to the utility controller and use a button (like "Playing Now" in the media player), back to the scene without putting any new string in it See the table:
(UITableView *) table view was SelectionRowAtIndexPath: (NSIndexPath *) Index pathway {selectedSong =
[Directory Content Object Import Pointer: indexPath.row]; NSString * storyLin = [[DirectoryContent objectAtIndex: [indexpath line]] stringbittramkingcarsats: [NSCharacterSet whitespaceAndNewlineCharacterSet]]; Patch = [NSString stringWithFormat: @ "/% @", storyline]; MyDetViewCont = [[mPlayerViewController alloc] initWithNibName: @ "mPlayerViewController" bundle: zero]; MyDetViewCont.myProgLang = Choices selected; // Assign the correct value to the variable within the detailViewController [self.navigationController pushViewController: myDetViewCont Animated: Yes]; [MyDetViewCont release]; // memory release controller}
In mPlayerViewController.m
- (IBAction) backtoplayer {myDetViewCont = [[mPlayerViewController alloc] initWithNibName: @ " MPlayerViewController "bundle: zero]; }
You have pushed a view on the navigation controller, just pop it up See below for
That's the reason, the view should pop into the myDetViewCont bus backtoplayer call. - (IBAction) back toplayer: (id) sender {[auto. Navigation Controller PopWebControllerUnited: Yes]; }
Comments
Post a Comment