Taking time to load the image from URL to UIImageview

后端 未结 3 995
死守一世寂寞
死守一世寂寞 2020-12-20 05:43

I am using this code for displaying the image from URL to UIImageview

UIImageView *myview=[[UIImageView alloc]init];

myview.frame = CGRectMake(50, 50, 320,         


        
3条回答
  •  失恋的感觉
    2020-12-20 06:30

    Use Dispatch queue to load image from URL.
    
    
    dispatch_async(dispatch_get_main_queue(), ^{
    
      });
    
    Or add a placeholder image till your image gets load from URL.
    

提交回复
热议问题