摘要: 转自:https://www.jianshu.com/p/95f965658ffe 我们在iOS平台上想要实现不同App之间的内容分享一般有几种常用方式: 给每个App定义一个URL Scheme,通过访问指定了URL Scheme的一个URL,实现直接访问一个APP; 通过UIDocumentIn 阅读全文
posted @ 2022-11-03 10:47 frounk 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: //Button点击全屏,强制横屏-(void)fullScreenAction{ if (@available(iOS 16, *)) { _landscape = YES; [self setNeedsUpdateOfSupportedInterfaceOrientations]; }}- (U 阅读全文
posted @ 2022-11-01 17:41 frounk 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 一、开启iTunes访问沙盒文件夹权限 在 Info.plist 文件中添加UIFileSharingEnabled这个Key, 并设置该值为 YES 即可在填写完 UIFileSharingEnabled并回车后, 发现会自动更正为Application supports iTunes file 阅读全文
posted @ 2022-10-31 18:02 frounk 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 上传的参数格式 修改方法如下 找到AFNetWorking 下的AFURLRequestSerialization.m文件然后再找到AFQueryStringPairsFromKeyAndValue方法会看到下图这句话 NSArray *array = value; for (id nestedVa 阅读全文
posted @ 2021-04-26 13:40 frounk 阅读(137) 评论(0) 推荐(0) 编辑
摘要: #import <QuickLook/QuickLook.h> @interface VC()<QLPreviewControllerDataSource,QLPreviewControllerDelegate> @property (nonatomic,strong)NSURL *fileURL; 阅读全文
posted @ 2021-04-21 18:43 frounk 阅读(101) 评论(0) 推荐(0) 编辑
摘要: <UIDocumentPickerDelegate> @property (nonatomic, strong) UIDocumentPickerViewController *documentPickerVC; /** 初始化 UIDocumentPickerViewController 选文件啊 阅读全文
posted @ 2021-04-21 18:39 frounk 阅读(1635) 评论(0) 推荐(0) 编辑
摘要: ****解决方法****: 使用UIGestureRecognizerDelegate 代理方法 给scrollview 添加一个手势 UIGestureRecognizer *gestur = [[UIGestureRecognizer alloc]init]; gestur.delegate=s 阅读全文
posted @ 2021-04-12 13:20 frounk 阅读(111) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/e255303d11b8 阅读全文
posted @ 2020-07-16 17:44 frounk 阅读(227) 评论(0) 推荐(0) 编辑
摘要: - (MPVolumeView *)airPlayBtn { if (!_airPlayBtn) { CGFloat w = 32; _airPlayBtn=[[MPVolumeView alloc] initWithFrame:CGRectMake(20, 20, w, w)]; [_airPla 阅读全文
posted @ 2020-02-29 17:06 frounk 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: 原文转自 https://www.jianshu.com/p/f4293785f1d5 UIViewControllerAnimatedTransitioning是iOS系统提供的转场动画协议,遵循该协议可自定义转场动画。 系统模态一个控制器时提供了模态风格的属性 模态风格属性 模态风格属性 模态风 阅读全文
posted @ 2020-01-13 11:47 frounk 阅读(2016) 评论(0) 推荐(0) 编辑