diff options
| author | Teddy Wing | 2012-05-08 22:07:01 -0400 |
|---|---|---|
| committer | Teddy Wing | 2012-05-08 22:07:01 -0400 |
| commit | deed2324a2118831a8d601c278e6a7a9051a7a1c (patch) | |
| tree | a05f4f71c4dc0aad8e5fc5128d3385f5a636fe53 /Video Tuneup/ViewController.m | |
| parent | e5685a2f9a268bb17e98a894baaed0c6b26519a9 (diff) | |
| download | Video-Tuneup-deed2324a2118831a8d601c278e6a7a9051a7a1c.tar.bz2 | |
Modified (3.) button:
* Button now functions as the 'Internet Tune-up' button
* Added parentheses labels on left & right sides of the button to indicate that it's optional
* Label on top of the button that indicates the status of the internet request
* Removed old RoundRect Internet Tune-up button (internetRequestButton)
Diffstat (limited to 'Video Tuneup/ViewController.m')
| -rw-r--r-- | Video Tuneup/ViewController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Video Tuneup/ViewController.m b/Video Tuneup/ViewController.m index beb0519..870e48a 100644 --- a/Video Tuneup/ViewController.m +++ b/Video Tuneup/ViewController.m @@ -22,7 +22,7 @@ static const NSString *ItemStatusContext; @synthesize player, playerItem, playerView, playButton, pauseButton, rewindButton, editor, videoNavBar, exportStatus, mScrubber, mediaLibraryButton, mediaLibraryPopover, exportButton, defaultHelpView; -@synthesize internetRequestButton; +@synthesize internetRequestLabel; #pragma mark - Video playback @@ -123,7 +123,7 @@ mScrubber, mediaLibraryButton, mediaLibraryPopover, exportButton, defaultHelpVie NSLog(@"Song asset duration is %f", CMTimeGetSeconds([songAsset duration])); if(CMTimeGetSeconds([songAsset duration]) == 0){ - [internetRequestButton setTitle:@"Internet Tune-up (failed)" forState:UIControlStateNormal]; + [internetRequestLabel setText:@"(failed)"]; return; } NSLog(@"Refreshing editor"); @@ -481,7 +481,7 @@ mScrubber, mediaLibraryButton, mediaLibraryPopover, exportButton, defaultHelpVie NSURL *songFileURL = [[NSBundle mainBundle] URLForResource:@"song" withExtension:@"mp3"]; [com setParentController:self]; [com mixMusic:songFileURL]; - [internetRequestButton setTitle:@"Attempting..." forState:UIControlStateNormal]; + [internetRequestLabel setText:@"(attempting...)"]; } #pragma mark - View controller boilerplate |
