小编Raf*_*eek的帖子

UIViewController - UIModalPresentationCurrentContext不旋转presentsViewController

我曾经以演示风格呈现UIViewController另一个.但它不允许我旋转(新呈现)UIViewControllerUIModalPresentationCurrentContextpresentingviewcontrollerUIViewControllerUIViewController

self.modalPresentationStyle = UIModalPresentationCurrentContext;
NewViewController *newViewController = [[NewViewController alloc] initWithNibName:@"NewViewController" Bundle: nil];
[self presentViewController:newViewController animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)

当我旋转设备将旋转newViewControllerstatusbar,但不presentingViewController

PS:这presentingViewControllerself.

在此输入图像描述

iphone objective-c uiviewcontroller ipad ios

8
推荐指数
1
解决办法
1059
查看次数

KVO与Swift中的共享NSUserDefaults

我通过传达NSUserDefaults更改在主机应用程序及其扩展之间进行通信时遇到问题.

我初始化NSUserDefaults使用 init(suiteName:),使用该addObserver(...)方法添加KVO观察者并覆盖该方法 observeValueForKeyPath(...)但是observeValueForKeyPath(...)当我更改对应于观察的值时不调用该方法key.如果你帮我解决这个问题会很棒.

PS:此处套件名称是应用程序组名称,NSUserDefaults使用suiteName as group identifier将在应用程序组的私有区域内创建.

ios7 swift ios8

5
推荐指数
1
解决办法
1419
查看次数

给当前正在录制的视频添加水印并带水印保存

我想知道是否有任何方法可以为当前正在录制的视频添加水印并将其与水印一起保存。(我知道将水印添加到应用程序包中已经可用的视频文件并使用水印导出)。

录制的视频上的 iPhone 水印。

我检查了这个链接。接受的答案不是好的答案。仅当您的捆绑包中已有视频文件时,投票最多的答案才适用。(请在建议之前阅读答案。)

提前致谢

avfoundation ios

3
推荐指数
1
解决办法
1915
查看次数

标签 统计

ios ×2

avfoundation ×1

ios7 ×1

ios8 ×1

ipad ×1

iphone ×1

objective-c ×1

swift ×1

uiviewcontroller ×1