Browse Source

iOS: Add rounded border to sleep timer container

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 years ago
parent
commit
25cdd71f8c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Sources/VLCMovieViewController.m

+ 2 - 0
Sources/VLCMovieViewController.m

@@ -549,6 +549,8 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
     /* add sleep timer UI */
     _sleepTimerContainer = [[VLCFrostedGlasView alloc] initWithFrame:CGRectMake(0., 0., 300., 200.)];
     _sleepTimerContainer.center = self.view.center;
+    _sleepTimerContainer.clipsToBounds = YES;
+    _sleepTimerContainer.layer.cornerRadius = 5;
     _sleepTimerContainer.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleTopMargin;
 
     _sleepTimeDatePicker = [[UIDatePicker alloc] init];