博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS随记
阅读量:7104 次
发布时间:2019-06-28

本文共 2662 字,大约阅读时间需要 8 分钟。

ios 10 访问设置问题

从ios8之api支持访问设置通过访问UIApplicationOpenSettingsURLString来跳转设置

NSURL*url=[NSURL URLWithString:UIApplicationOpenSettingsURLString];    if( [[UIApplication sharedApplication]canOpenURL:url] ) {        [[UIApplication sharedApplication]openURL:url options:@{}completionHandler:^(BOOL success) {                    }];    }

但是如果直接这样设置会闪退,原因是因为没有开启某项权限,只有开启权限后才能正常跳转所以需要自己稍作处理。

gitbook

https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93%E7%9A%84%E4%BD%BF%E7%94%A8

删除tag

git tag -d

git push origin :refs/tags/

Masonry

Aspect retio

make.width.equalTo(_drawView.mas_height).multipliedBy(width);

pod

target 'JspatchPro' do

pod 'JSPatchPlatform'
end

pod install 出现 Include of non-modular header inside framework module 解决方法 先把出现问题的pod 删除 执行 pod install 然后在写入 再次 pod install解决

pod repo update 更新远程pod

资源

http://blog.cnbang.net/archives/

制作动态库

新建工程frameWork 真机模拟器分别编译

合并framework中的库

lipo -create 真机 模拟机 路径 -output 路径

lipo -info 路径 查看信息

ios 音视频被打断通过设置AVAudioSessionInterruptionNotification来监听

[[NSNotificationCenter defaultCenter] addObserver:self                                             selector:@selector(handleAudioSessionInterruption:)                                                 name:AVAudioSessionInterruptionNotification                                               object:nil];- (void)handleAudioSessionInterruption:(NSNotification*)notification {    __weak typeof(self)weakSelf = self;    NSNumber *interruptionType = [[notification userInfo] objectForKey:AVAudioSessionInterruptionTypeKey];    NSNumber *interruptionOption = [[notification userInfo] objectForKey:AVAudioSessionInterruptionOptionKey];            switch (interruptionType.unsignedIntegerValue) {        case AVAudioSessionInterruptionTypeBegan:{            // • Audio has stopped, already inactive            // • Change state of UI, etc., to reflect non-playing state            [weakSelf leaveStreaming];        } break;        case AVAudioSessionInterruptionTypeEnded:{            // • Make session active            // • Update user interface            // • AVAudioSessionInterruptionOptionShouldResume option            if (interruptionOption.unsignedIntegerValue == AVAudioSessionInterruptionOptionShouldResume) {                // Here you should continue playback.                [[AVAudioSession sharedInstance] setActive:YES error:nil];                           }        } break;        default:            break;    }}

开启itunnes 共享

Application supports iTunes file sharing YES

苹果文档

https://developer.apple.com/library/content/navigation/#section=Resource%20Types&topic=Guides

转载于:https://www.cnblogs.com/keyan1102/p/7197767.html

你可能感兴趣的文章
我的软件测试之旅:(4)并行——自动化回归测试
查看>>
存储过程中用到的年,月,周的函数
查看>>
《设计模式解析(第2版•修订版)》—第1章复习题
查看>>
《iOS 6核心开发手册(第4版)》——1.14节秘诀:实时触摸反馈
查看>>
《Netty 权威指南》—— 传统的BIO编程
查看>>
《测试驱动数据库开发》——1.3 什么是障碍
查看>>
《jQuery Cookbook中文版》——1.7 返回破坏性修改之前的选择
查看>>
阿里云CDN + nginx多级代理获取客户端IP
查看>>
不用无限手套,人人都能开发BI系统
查看>>
ES6 module加载机制
查看>>
JavaScript判断数据类型
查看>>
TechEd 2012极为紧张的5天行程简单分享如下!
查看>>
局域网里加入新机
查看>>
一家德资企业的网络管理心得
查看>>
IBM WebSphere Portal 6.0的主题与皮肤开发
查看>>
我的友情链接
查看>>
软件研发中缺失的一环:人
查看>>
《云计算》教材配套课件合集
查看>>
linux进程管理
查看>>
java中资源的加载方法
查看>>