ios - Handle green phone call bar after call end -
I have some problems with my app after the phone call. The app hides the status bar.
This is the scenario:
-
In-process phone call
-
Open app
-
End phone call
Depends on the scene (sometimes it works differently on a single view!) App now The status bar is not hidden. It seems that under this view it starts right now.
I tried to solve the problem with this code:
- (zero) Application: (UIApplication *) Application: ChangeStatusBarFrame: (CGRKT) Old Status Barframe { UIView * topView = [[[UIApplication shared application] Keyword] SubViews] Final Object]; If (oldestatsubfra frame.height == 40) {topView.frame = CGRectMake (topView.frame.origin.x, -20, topView.frame.size.width, topView.frame.size.height); }}
Sometimes this trick happens and sometimes not ...
Please help me understand what is happening ... < / P>
The height of the view when toggle in-call status bar depends on the anchor it has is.
To control whether the view should go down or resize the scene when the Play In-Call status bar is shown, around UIView's autoResizingMask.
UIViewAutoresizingFlexibleTopMargin UIViewAutoresizingFlexibleHyight
will help you first push down a view, the other shape changes.
This question has also been replied to StackHowflow
Comments
Post a Comment