mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Animate the opacity transition
This commit is contained in:
parent
8b61ef586e
commit
bf739c229c
1 changed files with 15 additions and 2 deletions
|
|
@ -430,10 +430,23 @@ static PhoneMainView* phoneMainViewInstance=nil;
|
|||
|
||||
if( (!to_view && fromLightStatus) || toLightStatus ) {
|
||||
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
|
||||
[statusBarBG setHidden:NO];
|
||||
|
||||
if( !fromLightStatus ) {
|
||||
statusBarBG.alpha = 0;
|
||||
statusBarBG.hidden = NO;
|
||||
|
||||
[UIView animateWithDuration:0.3f animations:^{
|
||||
statusBarBG.alpha = 1;
|
||||
}];
|
||||
}
|
||||
} else if(fromLightStatus) {
|
||||
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
|
||||
[statusBarBG setHidden:YES];
|
||||
[UIView animateWithDuration:0.3f
|
||||
animations:^{
|
||||
statusBarBG.alpha = 0;
|
||||
} completion:^(BOOL finished) {
|
||||
statusBarBG.hidden = YES;
|
||||
}];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue