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