Quickly switch views - do you use this hack?

I have an iPhone app that displays a modal view controller. The modal view controller shows two instances of a custom subclass of UITextView called RoundedTextView, MKMapView, and UIToolbar. I create a viewController only once and reset its data and present it every time the user calls it.

When displaying this view controller using currentModalViewController, I noticed that the animation displaying the view was unstable on 3G. So, to speed it up, I set the alpha MKMapView and two RoundedTextView objects to 0 on viewWillDisappear and back to 1 on viewDidAppear. This made him enjoyable and quick. I also suggest that I could remove the views from the supervisor to speed it up.

Does anyone else jump through these hoops on the iPhone. Is there anything else I should do to avoid this hack?

+3
source share
2 answers

, , . .

, , Opaque, , . , .

+3

, , , UIButton , . . blazin.

+1

Source: https://habr.com/ru/post/1731626/


All Articles