Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

界面跳转的时候,感觉反应有点迟钝,求解? #2

Open
ETmanwenhan opened this issue Aug 3, 2017 · 3 comments
Open

界面跳转的时候,感觉反应有点迟钝,求解? #2

ETmanwenhan opened this issue Aug 3, 2017 · 3 comments

Comments

@ETmanwenhan
Copy link

Why is it so slow to jump from list to detail? The network request that was not involved in the jump?

@tonylin75
Copy link

@ETmanwenhan

if let url = URL(string: property.imgUrl), let data = NSData(contentsOf: url) { self.imageView?.image = UIImage(data: data as Data) }

this is why sometimes it delays the transition

@ETmanwenhan
Copy link
Author

the network of Image download is synchronous. That's the reason for sometimes it delays the transition ?

@tonylin75
Copy link

@ETmanwenhan yep I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants