12 2019 档案
摘要:/** 获取scrollView的长截图*/ - (UIImage *)getLongImage:(UIScrollView *)scrollView { UIGraphicsBeginImageContextWithOptions(scrollView.contentSize, NO, [UISc
阅读全文
摘要:首先我们需要进行麦克风访问授权 AVAudioSessionRecordPermission permission = [[AVAudioSession sharedInstance] recordPermission]; //判断是否授权 if (AVAudioSessionRecordPermi
阅读全文
摘要:1、程序的五种状态Not Running:未运行。Inactive:前台非活动状态。处于前台,但是不能接受事件处理。Active:前台活动状态。处于前台,能接受事件处理。Background:后台状态。进入后台,如果又可执行代码,会执行代码,代码执行完毕,程序进行挂起。Suspended:挂起状态。
阅读全文
摘要://后台进前台通知 UIApplicationDidBecomeActiveNotification [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didBecomeActive) name:UIA
阅读全文