summaryrefslogtreecommitdiff
path: root/ios/iosremote/SWRevealViewController
diff options
context:
space:
mode:
authorSiqi LIU <me@siqi.fr>2013-09-21 16:13:07 +0200
committerSiqi LIU <me@siqi.fr>2013-09-21 16:16:24 +0200
commit6d29bafee442ebb2a60da4dfe8f4b5f63eb04b0d (patch)
tree10629615265fd1ab44a008824a30f41038aaa00a /ios/iosremote/SWRevealViewController
parentb95acb2bdcc6bc7c09a806157361c83142858d97 (diff)
iOS datepicker background issues
Change-Id: I532d3b854ff3b66048b40decd2d9232ab9720151
Diffstat (limited to 'ios/iosremote/SWRevealViewController')
-rwxr-xr-xios/iosremote/SWRevealViewController/SWRevealViewController.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/ios/iosremote/SWRevealViewController/SWRevealViewController.m b/ios/iosremote/SWRevealViewController/SWRevealViewController.m
index feab034b3cee..de861f66ed0c 100755
--- a/ios/iosremote/SWRevealViewController/SWRevealViewController.m
+++ b/ios/iosremote/SWRevealViewController/SWRevealViewController.m
@@ -404,7 +404,7 @@ const int FrontViewPositionNone = 0xff;
}
CGRect toolbarTargetFrame = CGRectMake(0, self.view.bounds.size.height-216-44, 320, 44);
CGRect datePickerTargetFrame = CGRectMake(0, self.view.bounds.size.height-216, 320, 216);
-
+
UIView *darkView = [[UIView alloc] initWithFrame:self.view.bounds];
darkView.alpha = 0;
darkView.backgroundColor = [UIColor blackColor];
@@ -412,9 +412,11 @@ const int FrontViewPositionNone = 0xff;
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissDatePicker:)];
[darkView addGestureRecognizer:tapGesture];
[self.view addSubview:darkView];
+ darkView.alpha = 0.5;
UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height+44, 320, 216)];
datePicker.tag = 90;
+ datePicker.backgroundColor = [UIColor whiteColor];
[datePicker setDatePickerMode:UIDatePickerModeCountDownTimer];
[datePicker addTarget:self action:@selector(changeDate:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:datePicker];
@@ -430,7 +432,7 @@ const int FrontViewPositionNone = 0xff;
[UIView beginAnimations:@"MoveIn" context:nil];
toolBar.frame = toolbarTargetFrame;
datePicker.frame = datePickerTargetFrame;
- darkView.alpha = 0.5;
+
[UIView commitAnimations];
}