简体   繁体   中英

Why is a modal Segue taking more than 4 seconds to present a new ViewController?

I am using IOS 9.0 and swift, and Xcode 7.1.1, and I am just doing something extremely basic, which is using a Segue in Interface Builder to show a new ViewController when a button is touched on the presenting view controller. And when i run the app on my iPhone, it takes just a little about 4 seconds for the transition to occur. Below are the options i chose for the Segue. I turned off "animation" because with animation the transition was even slower. So how can one control the speed of transition in Interface Builder or programmatically. This transition time is unacceptable, has anyone run into this?

在此处输入图片说明

Can you delete all things inside viewDidLoad , viewWillAppear , prepareForSeque of your destinated ViewController?

It isn't slow because of Animation or Speed of transaction . The problem is inside your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM