VLCMigrationViewController.m 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*****************************************************************************
  2. * VLCMigrationViewController.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Author: Carola Nitz <caro # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCMigrationViewController.h"
  13. @implementation VLCMigrationViewController
  14. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
  15. if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
  16. }
  17. return self;
  18. }
  19. - (void)viewDidLoad {
  20. [self.statusLabel setText:NSLocalizedString(@"UPGRADING_LIBRARY", "")];
  21. dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
  22. NSLog(@"migrating coredata");
  23. [[MLMediaLibrary sharedMediaLibrary] persistentStoreCoordinator];
  24. dispatch_async(dispatch_get_main_queue(), ^{
  25. self.completionHandler();
  26. });
  27. });
  28. }
  29. @end