瀏覽代碼

iOS: Add rounded border to sleep timer container

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 年之前
父節點
當前提交
25cdd71f8c
共有 1 個文件被更改,包括 2 次插入0 次删除
  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];