zoukankan      html  css  js  c++  java
  • 第3月30天 UIImage imageWithContentsOfFile卡顿 Can't add self as subview MPMoviePlayerControlle rcrash

    1.

    UIImage imageWithContentsOfFile卡顿

    [[UIImage alloc] initWithContentsOfFile 卡顿

     

    2.uitableview scroll to top

     

        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];

        [_commentsTab scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionNone animated:NO];

     

    修改为

    [mainTableView setContentOffset:CGPointZero animated:YES];

    http://stackoverflow.com/questions/724892/uitableview-scroll-to-the-top

     

    3.

     

    Can't add self as subview

     

    https://www.douban.com/note/536194761/

     

    4.

     

     

    self.player.movieSourceType = MPMovieSourceTypeStreaming;




    http://www.jianshu.com/p/b7fc2516162b 

    5.

    [AVCaptureMetadataOutput setMetadataObjectTypes:] Unsupported type found - use -availableMetadataObjectTypes

    http://blog.csdn.net/jf200614379/article/details/50956910

    6.

    was mutated while being enumerated.

    http://blog.it985.com/144.html

    7.

    list_for_each_safe

    http://blog.csdn.net/kangear/article/details/43712085

    nsmutablearray 删除

    http://blog.csdn.net/mingerw/article/details/51207158

    2.将要删除的字符串所在的下表添加在一个NSMutableIndexSet 中,最后一起删除
        NSMutableArray *arr1 = [[NSMutableArrayalloc]initWithObjects:@"QQQ",@"ABC",@"DEF",@"ABC",@"ABC",@"QWE",@"TTT",nil];
    
        NSMutableIndexSet *set = [[NSMutableIndexSetalloc]init];
        for(int i =0 ; i < arr1.count ; i++)
        {
            NSString *str = arr1[i];
            if([str isEqualToString:@"ABC"])
            {
                [set addIndex:i];
            }   
        }
        [arr1 removeObjectsAtIndexes:set];
  • 相关阅读:
    【Cloud Foundry】Could Foundry学习(二)——核心组件分析
    POJ 1789-Truck History
    设置静态IP
    oracle切割字符串后以单列多行展示
    SQL server语句练习
    hdu 3308 LCIS(线段树)
    HDU 1556 Color the Ball 线段树 题解
    CSipSimple最新版本号
    奢侈品行业-新手专题-亿邦动力网
    单身潮_百度百科
  • 原文地址:https://www.cnblogs.com/javastart/p/6236260.html
Copyright © 2011-2022 走看看