iphone – 在iOS应用程序中创建具有不同内容的另一个输出设备

iphone – 在iOS应用程序中创建具有不同内容的另一个输出设备,第1张

概述NOTE : Kindly Look into the Edit Section , This section is just a Reference purpose. 我是IOS App Development架构的新手.请,我只需要澄清是否可以制作两个输出,一个是在后台连续运行连接到其他输出设备(HDTV,监视器等),如此链接here所示 例如,我正在举办一个连接投影仪的研讨会,将我的演示文稿

NOTE : Kindly Look into the Edit Section,This section is just a
Reference purpose.

我是IOS App Development架构的新手.请,我只需要澄清是否可以制作两个输出,一个是在后台连续运行连接到其他输出设备(HDTV,监视器等),如此链接here所示

例如,我正在举办一个连接投影仪的研讨会,将我的演示文稿作为后台进程运行,同时我可以使用“EXTEND模式”在笔记本电脑屏幕上 *** 作我的内容.

请不要解除我的问题,我只需要知道“IOS开发架构”是否提供此问题.
需要做:

1)可以使用后台进程的其他输出屏幕(每当MyApp处于活动状态时连续).

2)我的iPad中的一个前景显示是MyApp难以处理的.

编辑:
更新到我自己的问题:

对于上述问题,

I got the solution something interesting 07001 and 07002.

我会通过它,但如果有人有想法或克服这个问题,请建议我一些有用的信息.

关于问题的简要说明:

我只是想在我的应用程序运行时,在连接到iPad的另一个输出设备中显示一些不同的内容.

解决方法 是的,这可以使用AirPlay.

默认情况下,当您将外部显示器连接到iPad或iPhone时,您将在外部屏幕上获得应用程序的镜像图像.但是,您可以从iPad或iPhone应用程序访问第二个屏幕,并将其用于其他内容.您可以通过UIScreen类获得所有可用的“屏幕”.来自[UIScreen屏幕]的文档:

The returned array includes the main screen plus any additional screens connected to the device. The main screen is always at index 0.

Not all devices support external displays. Currently,external displays are supported by iPhone and iPod touch devices with Retina displays and iPad. older devices,such as the iPhone 3GS do not support external displays. Connecting to an external display requires an appropriate cable between the device and display.

有关您可以做什么的示例,您可以查看Real Racing 2,它在iPad上显示地图,在外部屏幕上显示实际比赛;或Tweetwall也使用这种方法(披露:我负责制作Tweetwall).

编辑:您可以像这样初始化外部屏幕:

// Get second screenUIScreen *secondScreen = [[UIScreen screens] objectAtIndex:1];secondScreen.currentMode = secondScreen.preferredMode;// Get the screen's bounds so that you can create a window of the correct size.CGRect screenBounds = CGRectMake(secondScreen.bounds.origin.x,secondScreen.bounds.origin.y,secondScreen.currentMode.size.wIDth,secondScreen.currentMode.size.height);UIWindow *seconDWindow = [[UIWindow alloc] initWithFrame:screenBounds];seconDWindow.screen = secondScreen;// Setup external vIEw controllerYourExternalScreenVIEwController *extVC = [[YourExternalScreenVIEwController alloc] init];// Set VC for second windowseconDWindow.rootVIEwController = extVC;// Show the window.seconDWindow.hIDden = NO;

有更多的腿部工作,但这是概念.

编辑2:这是一个链接到Apple’s Multiple Display Programming Guide for iOS

总结

以上是内存溢出为你收集整理的iphone – 在iOS应用程序中创建具有不同内容的另一个输出设备全部内容,希望文章能够帮你解决iphone – 在iOS应用程序中创建具有不同内容的另一个输出设备所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1059022.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存