您的位置:首页 > 移动开发 > IOS开发

iOS延迟加载

2016-04-14 10:38 387 查看
dispatch_time_t popTimer =
dispatch_time(DISPATCH_TIME_NOW, (int64_t) (delayInSeconds *
NSEC_PER_SEC));

 
     
dispatch_after(popTimer, dispatch_get_main_queue(), ^{

 
     
    [UIView
animateWithDuration:0.2 animations:^{

 
     
     
  vc.view.alpha = 0.0;

 
     
    } completion:^(BOOL finished)
{

 
     
     
  [vc.view removeFromSuperview];

 
     
    }];

 
     
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: