随手记解决的问题

 cocopod导入类库出现

 

解决方法

附链接: http://blog.csdn.net/baybaymax/article/details/44746317

 

2. 

[AVPlayer play];  模拟器播放出错

这两天研究视频播放,集成RTMP视频出现的异常,刚好看到一篇博客,楼主使用[AVAudioPlayer Play]时出现了异常。。。记录下来

由于xcode中设置了当所有异常出现时的断点,,解决办法是将all改为Objective-C

附原文链接:http://www.cnblogs.com/lukunlun/p/6092939.html

 

3.获取手机安装的应用的所有信息  包括name,bundleIdentitifer

    Class c =NSClassFromString(@"LSApplicationWorkspace");
    id s = [(id)c performSelector:NSSelectorFromString(@"defaultWorkspace")];
    NSArray *array = [s performSelector:NSSelectorFromString(@"allInstalledApplications")];
    for (id item in array)
    {
        NSLog(@"%@",[item performSelector:NSSelectorFromString(@"applicationIdentifier")]);
        NSLog(@"%@",[item performSelector:NSSelectorFromString(@"bundleIdentifier")]);
        //        NSLog(@"%@",[item performSelector:NSSelectorFromString(@"bundleVersion")]);
        //        NSLog(@"%@",[item performSelector:NSSelectorFromString(@"shortVersionString")]);
        NSLog(@"%@",[item performSelector:NSSelectorFromString(@"itemName")]);
        
    }

 

posted @ 2016-10-07 15:49  iOS-轻狂书生  阅读(190)  评论(0编辑  收藏  举报