views:

7

answers:

0

I'm having problems with reordering a UITableView. The tableview in question presents a playlist for video files. Data is stored in an NSMutableArray. Pushing the "move" button (UIBarButtonItem) enables reordering. Everything working so far. Pushing another button starts playing all the files in the table.

Playback of the movie is initiated by:

theMovie.view.frame=CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.width*0.75); 

[self.view addSubview:theMovie.view];

After the last file I call:

[self dismissMoviePlayerViewControllerAnimated];

This takes me back to my table. And now my problem starts. I can still enable reordering by pushing the move button, all controls shop up, but I can't actually reorder cells anymore.

I also reload data in viewWillApear:

 - (void)viewWillAppear:(BOOL)animated {

[self.tableView reloadData];

[super viewWillAppear:animated]; } What am I missing here? Does my NSMutableArray stop being mutable? Is there something wrong with how I dismiss the movie view?

Any help is highly appreciated. Thanks a lot in advance. This forum has helped my alot in getting started with ios programming.