created a loading frame
This commit is contained in:
parent
81c84597c8
commit
3617ea98e2
6 changed files with 110 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue