Sfoglia il codice sorgente

Library: fix minor appearance issues

Felix Paul Kühne 12 anni fa
parent
commit
11c4f891e2
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      AspenProject/VLCPlaylistViewController.m

+ 4 - 1
AspenProject/VLCPlaylistViewController.m

@@ -102,7 +102,8 @@
 
 - (void)viewDidAppear:(BOOL)animated
 {
-    [self performSelector:@selector(reloadContents) withObject:nil afterDelay:.0];
+    if (_foundMedia.count < 1)
+        [self performSelector:@selector(reloadContents) withObject:nil afterDelay:.0];
     [[MLMediaLibrary sharedMediaLibrary] performSelector:@selector(libraryDidAppear) withObject:nil afterDelay:1.];
 
     [super viewDidAppear:animated];
@@ -257,6 +258,8 @@
 
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
+    [tableView deselectRowAtIndexPath:indexPath animated:YES];
+
     NSManagedObject *currentObject = _foundMedia[indexPath.row];
     if ([currentObject isKindOfClass:[MLAlbum class]]) {
         _foundMedia = [NSMutableArray arrayWithArray:[[(MLAlbum *)currentObject tracks] allObjects]];