zoukankan      html  css  js  c++  java
  • [GatekeeperXPC] Connection to assetsd was interrupted or assetsd died

    项目中collectionView通过获取的4K录像文件的IDR帧时候,每帧大概有2-4M,在iphone 6上连续加载显示内存会上升但过会就释放了.最后还是会提示如上而崩溃.

    我的第一感觉是Image文件过大,频繁调度会被ios认为不安全,所以在显示缩略图的时候就改为了width/height比的screen width值处理,这样的文件不过100K.

       UIGraphicsBeginImageContext(CGSizeMake(KWidth, KWidth * image.size.height/image.size.width));

        [image drawInRect:CGRectMake(0, 0,KWidth , KWidth * image.size.height/image.size.width)];

        UIImage *imageNew = UIGraphicsGetImageFromCurrentImageContext();

        UIGraphicsEndImageContext();

    提高技能如同提升自信心。
  • 相关阅读:
    bootstrap
    Bootstrap面试题
    h5+css3 考试题
    less安装与使用
    css3(四)响应式 Web 设计 - 媒体查询
    css3(三)弹性布局
    css3(三)多列布局
    JavaScriptAPI初识
    Bootstrap面试题
    BS初识
  • 原文地址:https://www.cnblogs.com/chims-liu-touch/p/9298012.html
Copyright © 2011-2022 走看看