Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Darken TKAlertViewController background when shown.

  • Loading branch information...
commit a39390718dd1216056dba17037386402455e62d5 1 parent a9608c5
@devinross authored
View
2  demo/Classes/IndicatorsViewController.m
@@ -42,7 +42,7 @@ - (id) init{
#pragma mark View Lifecycle
- (void) loadView{
[super loadView];
- self.view.backgroundColor = [UIColor colorWithWhite:0.7 alpha:1];
+ self.view.backgroundColor = [UIColor colorWithWhite:1 alpha:1];
[self.view addSubview:self.progressBar];
[self.view addSubview:self.progressCircle];
View
3  src/TapkuLibrary/TKAlertViewController.m
@@ -130,6 +130,7 @@ - (void) showAlertView:(id<UIViewControllerContextTransitioning>)transitionConte
[UIView animateWithDuration:[self transitionDuration:transitionContext] animations:^{
toVC.view.alpha = 1;
+ toVC.view.backgroundColor = [UIColor colorWithWhite:0 alpha:0.1];
}];
@@ -180,6 +181,8 @@ - (void) hideAlertView:(id<UIViewControllerContextTransitioning>)transitionConte
[UIView animateWithDuration:0.4 delay:0.5f options:0 animations:^{
self.view.alpha = 0;
+ self.view.backgroundColor = [UIColor colorWithWhite:0 alpha:0.0];
+
}completion:^(BOOL finished){
[transitionContext completeTransition:YES];
}];
Please sign in to comment.
Something went wrong with that request. Please try again.