buffer-ios-sdk icon indicating copy to clipboard operation
buffer-ios-sdk copied to clipboard

NSData dataWithContentsOfURL called from main thread

Open JayZhao opened this issue 12 years ago • 0 comments

Hi,

I've encounter this problem that NSData is trying to fetch data from a remote URL thus blocking the main thread for a long time.

Here's the stack: screen shot 2013-10-25 at 12 27 46 am

  • If the code here is trying to render an avatar image from web, can I suggest that you may just use the setImageWithURL from "UIImageView+AFNetworking.h"?

JayZhao avatar Oct 24 '13 16:10 JayZhao