Skip to content

Instantly share code, notes, and snippets.

@tokorom
Created November 14, 2013 02:12
Show Gist options
  • Save tokorom/7460161 to your computer and use it in GitHub Desktop.
Save tokorom/7460161 to your computer and use it in GitHub Desktop.
- (void)zipArchiveDidUnzipArchiveAtPath:(NSString*)path
zipInfo:(unz_global_info)zipInfo
unzippedPath:(NSString*)unzippedPath
{
NSString* bundlePath = [unzippedPath stringByAppendingPathComponent:@"storyboards.bundle"];
NSURL* url = [NSURL fileURLWithPath:bundlePath];
NSBundle* bundle = [NSBundle bundleWithURL:url];
UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"Downloadable" bundle:bundle];
UIViewController* viewController = [storyboard instantiateInitialViewController];
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController:viewController animated:YES completion:nil];
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment