Permalink
Browse files

do this here when the size is right

  • Loading branch information...
1 parent 7123aa5 commit 430194fa39848fa555a0b578505a9607588990f2 @maddox maddox committed Aug 20, 2013
Showing with 9 additions and 9 deletions.
  1. +9 −9 Play iOS/Classes/Controllers/PLAPlayerViewController.m
@@ -42,14 +42,7 @@ - (void)viewDidLoad{
[self.songLabel setText:@""];
albumArtImageView.layer.masksToBounds = YES;
-
- MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:CGRectMake(self.view.bounds.size.width - 70.0, self.view.bounds.size.height - 35.0, 30.0, 50.0)];
- [volumeView setShowsVolumeSlider:NO];
- [volumeView setShowsRouteButton:YES];
- [volumeView sizeToFit];
- [self.view addSubview:volumeView];
- [volumeView release];
-
+
[playButton.titleLabel setFont:[UIFont fontWithName:@"FontAwesome" size:20.0]];
[playButton setTitle:@"\uf04b" forState:UIControlStateNormal];
@@ -80,11 +73,18 @@ - (void)viewDidUnload{
- (void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
+
+ MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:CGRectMake(self.view.bounds.size.width - 70.0, self.view.bounds.size.height - 35.0, 30.0, 50.0)];
+ [volumeView setShowsVolumeSlider:NO];
+ [volumeView setShowsRouteButton:YES];
+ [volumeView sizeToFit];
+ [self.view addSubview:volumeView];
+ [volumeView release];
UIApplication *application = [UIApplication sharedApplication];
[application beginReceivingRemoteControlEvents];
[self becomeFirstResponder]; // this enables listening for events
- [[NSNotificationCenter defaultCenter] postNotificationName:ASStatusChangedNotification object:self];
+ [[NSNotificationCenter defaultCenter] postNotificationName:ASStatusChangedNotification object:self];
}
- (NSUInteger)supportedInterfaceOrientations {

0 comments on commit 430194f

Please sign in to comment.