UIButtons touch area changes when a call status bar is displayed

UPDATE 2

My suspicious ones were true. The problem was in the animation because I did not take into account the origin of the Y axis, which was different when the call status bar was shown. I will also add an answer with the appropriate code.

UPDATE 1

I had the thought that menu animation was causing a problem. When I click the menu, it starts the animation to open the menu. The animation shifts the presented VC to the right, compresses it a bit and rotates it along the z axis to make it smooth. I will research in this direction and update if I find anything.

ORIGINAL MAIL

I noticed some problems with the user interface when the Inbox status bar is displayed in my application.

I have a custom view that acts like my navigation bar and contains a small button to return to the menu. (I will name him menuBtn). Under this customizable navigation bar there is a table view containing tableViewHeadertwo buttons for moving between days in the table. (I will name these buttons: prevBtenand nextBtn). I will use these 3 views as an example, but the problem completely wanes ...

, . In-Call , , . , menuBtn, , ( Storyboards). , , ( ), : , , . , , , .

- , , (.. menuBtn) differnet (prevBtn).

/. :

, , Storyboards - .

, ,

, menuBtn:

- (void)replaceChildStoryboard:(NSString *)storyboardName
{
//remove previos child view and itself from parent
[currNav removeFromParentViewController];
[currNav.view removeFromSuperview];

//instantiate new storyboard
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
UINavigationController *vc = [storyboard instantiateInitialViewController];

//update curr pointer to new child and add it to parent
currNav = vc;
[self addChildViewController:currNav];
[self.view addSubview:currNav.view];
[currNav didMoveToParentViewController:self];

//animate transition
[self slideNavAnimated:NO];
[self navPressed];

}

, prevBtn (, menuBtn), menuBtn. ( , ), prevBtn, menuBtn. , prevBtn)

Normal stateIn-Call status bar is opentap area wrong

, - .

.

+3
1

, , , . , Y , (\).

Y , . :

 //adding the animations
      [currNav.view.layer addAnimation:[NRAnimationFactory positionAnimationFrom:CGPointMake(centerOriginX, self.view.frameHeight/2)
                                                                              To:CGPointMake(self.view.frameWidth, self.view.frameHeight/2)
                                                                        Duration:duration]
                                forKey:@"moving"];   

 //adding the animations :
      [currNav.view.layer addAnimation:[NRAnimationFactory positionAnimationFrom:CGPointMake(centerOriginX, self.view.originY + self.view.frameHeight/2)
                                                                              To:CGPointMake(self.view.frameWidth, self.view.originY + self.view.frameHeight/2)
                                                                        Duration:duration]
                                forKey:@"moving"];   

self.view.originY, 0, , - 20.

, . !

0

All Articles