Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (buttonIndex == 0){
- if(!isGenre && !isSearching){
- [appdelegate copyArray];
- wordArray = [appdelegate.appDelMovieView mutableCopy];
- [self createSectionList:wordArray];
- [rootTable reloadData];
- }else{
- wordArray = [[NSMutableArray alloc] initWithArray:sectionArray copyItems:YES];
- NSLog(@"copied to word array %@", wordArray);
- }
- NSInteger countSec = [letters count];
- self.title = @"DVD";
- find = @"DVD";
- for (int z = (countSec -1); z > -1; z--){
- section = z;
- NSInteger count = [[sectionArray objectAtIndex:section] count];
- for (int n = (count -1); n > -1; n--){
- Movie *show = (Movie *)[[sectionArray objectAtIndex:section] objectAtIndex:n];
- if ( [show.format isEqualToString:find] ){
- }else{
- if(!isGenre && !isSearching){
- [appdelegate.appDelMovieView removeObject:show];
- }else{
- [[sectionArray objectAtIndex:section] removeObject:show];
- }
- }
- }
- }
- if(!isGenre && !isSearching){
- wordArray = [appdelegate.appDelMovieView mutableCopy];
- [self createSectionList:wordArray];
- [rootTable reloadData];
- }else{
- [rootTable reloadData];
- [sectionArray removeAllObjects];
- sectionArray = [wordArray mutableCopy];
- NSLog(@"boobies %@",wordArray);
- // NSLog(@"copied to word array %@", wordArray);
- // NSLog(@"copied back %@", sectionArray);
- }
Add Comment
Please, Sign In to add comment