diff options
| author | Teddy Wing | 2012-05-08 18:31:19 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2012-05-08 18:31:19 -0400 | 
| commit | 5c0e1597bd05ae886cfc71cd3570e00c531e7cbf (patch) | |
| tree | 1d99969ea5642e2b1433961ebbe591f072c91027 /Video Tuneup/ViewController.m | |
| parent | db13cca2b48614d55be867e097e406d11ea079cd (diff) | |
| download | Video-Tuneup-5c0e1597bd05ae886cfc71cd3570e00c531e7cbf.tar.bz2 | |
Default "no-content" view: if no video is selected, show this view so that the user knows they have to select a video, and so they know how to use the app. Once the user has selected a video, this 'help view' gets hidden so they can preview their video in the playerView.
Diffstat (limited to 'Video Tuneup/ViewController.m')
| -rw-r--r-- | Video Tuneup/ViewController.m | 17 | 
1 files changed, 16 insertions, 1 deletions
| diff --git a/Video Tuneup/ViewController.m b/Video Tuneup/ViewController.m index 1e6f981..41925b9 100644 --- a/Video Tuneup/ViewController.m +++ b/Video Tuneup/ViewController.m @@ -20,7 +20,7 @@ static const NSString *ItemStatusContext;  @implementation ViewController  @synthesize player, playerItem, playerView, playButton, pauseButton, rewindButton, editor, videoNavBar, exportStatus, -mScrubber, mediaLibraryButton, mediaLibraryPopover, exportButton; +mScrubber, mediaLibraryButton, mediaLibraryPopover, exportButton, defaultHelpView;  @synthesize internetRequestButton; @@ -497,6 +497,8 @@ mScrubber, mediaLibraryButton, mediaLibraryPopover, exportButton;      [super viewDidLoad];      self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"hixs_pattern_evolution.png"]]; +     +    [defaultHelpView setBackgroundColor:[[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"noisy tile.png"]]];      NSLog(@"viewDidLoad"); @@ -551,4 +553,17 @@ mScrubber, mediaLibraryButton, mediaLibraryPopover, exportButton;      }  } +- (void)toggleHelpView { +    if (! [defaultHelpView isHidden]) { +        [playerView setHidden:NO]; +        [videoNavBar setHidden:NO]; +        [defaultHelpView setHidden:YES]; +    } +    else { +        [defaultHelpView setHidden:NO]; +        [playerView setHidden:YES]; +        [videoNavBar setHidden:YES]; +    } +} +  @end | 
