Syed e Hussaini Syed e Hussaini - 1 year ago 73
iOS Question

NavigationController Push Distort Background Image

I have two

both have have a Background Image with Height equal to the parent view of view controller.
When i
between these
the animation distort the background image animation when
animation start.
I do not want to disable the
animation but i also do not want this abrupt distortion of image animation as well.
has a translucent property enabled as well as a transparent background image on
I have set the background image on each view controller by
with Top, Leading, Trailing, Bottom with constant zero.

Answer Source

As per your question, I can understand that you have two view controller with background images by one you push to another one ,and when you navigate that view controller background image get distorted . Firstly in ios 10 you should use show instead of push methods then you should use dispatch while you navigating like that -

dispatch_async(dispatch_get_main_queue(), ^{
    [self.navigationController pushViewController:[self.storyboard instantiateViewControllerWithIdentifier:@"thirdScreen"] animated:YES];

PS :- I dont think this would be cause by translucent property .

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download