created a loading frame

This commit is contained in:
Diego Waxemberg
2015-02-24 22:13:33 -05:00
parent 81c84597c8
commit 3617ea98e2
6 changed files with 110 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
#import "AppListResponse.h"
#import "ServerInfoResponse.h"
#import "StreamFrameViewController.h"
#import "LoadingFrameViewController.h"
@implementation MainFrameViewController {
NSOperationQueue* _opQueue;
@@ -271,7 +272,6 @@ static NSArray* appList;
}
}
- (App*) findRunningApp {
for (App* app in appList) {
if (app.isRunning) {
@@ -296,6 +296,15 @@ static NSArray* appList;
}
}
- (void) showLoadingFrame {
LoadingFrameViewController* loadingFrame = [self.storyboard instantiateViewControllerWithIdentifier:@"loadingFrame"];
[self.navigationController presentViewController:loadingFrame animated:YES completion:nil];
}
- (void) hideLoadingFrame {
[self dismissViewControllerAnimated:YES completion:nil];
}
- (void)viewDidLoad
{
[super viewDidLoad];