ipad

How to display a red status bar when the home button is pressed?

半腔热情 提交于 2020-05-27 01:54:11
问题 How do I display a red status bar when the home button is pressed while my recoding app is doing some recording? I checked this question: How to hide the red bar under the iOS's status when recording? However, I use Core Audio and Extended Audio File Services to do recording. I am unable to find any proper documentation to programatically do this. Any help or pointers will be appreciated. 回答1: I believe from saying a red status bar when the home button is pressed you are asking whether you

Getting currently focused UIScene when multiple connected scenes are active in foreground

拜拜、爱过 提交于 2020-05-15 03:45:10
问题 I have a problem getting the current UIScene when multiple scenes are connected. Specifically, my app (iOS 13) supports multiple windows on the iPad. When I have two windows side by side and I access the apps connected scenes (with UIApplication.shared.connectedScenes ), all of them have the activationState set to .foregroundActive . But I am actually only interacting with one of them. I found some code here on stackoverflow to retrieve the current key window (can't remember who it was that

How do I check if iOS device is set to “do not disturb”?

倖福魔咒の 提交于 2020-05-14 19:15:06
问题 Is there a way to check if user selected "do not disturb" mode? My app relies on some push notifications and I want to inform user, that he should disable "do not disturb" mode for better experience. 回答1: No this is not possible using the public APi's available. 回答2: "Do not Disturb" mode not possible Programmatically. 来源: https://stackoverflow.com/questions/18376383/how-do-i-check-if-ios-device-is-set-to-do-not-disturb

iPad is not showing in Develop menu on OSX Safari

梦想与她 提交于 2020-05-09 18:36:28
问题 I need to debug an HTML app on ipad. I used to be able to connect ipad by USB cable to my mac and it would show in the "Develop" menu in Safari. I have two ipads now - one with iOS 6 and another with iOS 7. The iOS 6 one is showing correctly and I can access the web inspector from my mac. iOS 7 ipad is not showing in the "Develop" menu. I have the latest version of iOS installed (version 7.1) and the latest version of Safari (7.0.2) on Maverick. Any suggestions are welcome. 回答1: Enable web

Need to allow ppt files to be selected by UIDocumentPicker

早过忘川 提交于 2020-04-18 05:45:52
问题 I need to allow ppt,docx, xlsx and pdf files only to be picked up by document picker in my application. What I need to set as document types when I initialize my document picker? 回答1: I have added couple of types in the below mentioned code, please check if it solves your issue: let types: [String] = [kUTTypePDF as String,kUTTypeSpreadsheet as String, kUTTypePresentation as String, "com.apple.iwork.pages.pages", "public.text"] let documentPicker = UIDocumentPickerViewController(documentTypes:

JavaScript判断访问终端

前提是你 提交于 2020-03-29 08:45:16
最近制作了一个二维码,在android平台会进去android下载渠道,如果是ios系统,则进去appStore下载,代码如下 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body style="font-size:40px;"> <div id="tips" style="padding: 50px 0;width:100%;margin:0 auto;display: none;"> <h1 style="text-align: center;font-size:50px;">请点击右上角</h1> <h2 style="text-align: center;font-size:50px;">选择浏览器打开</h2> </div> </body> <script type="text/javascript"> //判断访问终端 var browser={ versions:function(){ var u = navigator.userAgent, app = navigator.appVersion; return { trident: u.indexOf('Trident') > -1, //IE内核 presto: u

New iPad遇冷 平板电脑盛宴还是泡沫

独自空忆成欢 提交于 2020-03-28 17:50:19
  继智能手机之后,平板电脑又成为互联网科技企业争相谋篇布局的移动平台。自iPad发布以来,近几年的平板市场上,iPad一直都是平板电脑的王者,独占鳌头。而此时的众多巨头们终于再也按捺不住,纷纷将目光投向这块大蛋糕。亚马逊已有Kindle Fire平板电脑,不久前谷歌也发售了配置和价格都相当有竞争力的Google Nexus 7 平板电脑,随后微软也发布了Surface平板电脑,平板市场从未像现在这般热闹过。   7月20日,苹果New iPad以预约购买的形式正式在中国内地市场销售。但与以往苹果产品上市人山人海时的场面不同,此次发布并没有引起果迷们的极度热情,New iPad的销售量也是平平无奇。业内普遍认为这是New iPad内地上市时间过晚、New iPad革新不够导致苹果神话不再。   在新iPad还未进入中国内地市场之前,中国本土平板电脑借助巨大的市场空档期以低价抢市场,大量千元以下平板电脑纷纷上市。纽曼、汉王、海尔、海信等都推出了不足千元平板电脑产品。除价格更低外,国产厂商也热衷于平板电脑应用的开发,拓展更多的应用功能。但由于巨大的品牌差异,目前国产平板还无法与苹果抗衡。   苹果的平板电脑概念,是在PC市场趋于饱和情况下推出的,它将PC功能中的娱乐休闲与移动手机中的应用平台相结合,颠覆了电脑使用终端的“操作体验”。如今,历史正在重演

为什么苹果的iPad Mini会和iPhone一样“红”?

可紊 提交于 2020-03-28 17:48:58
下一代iPhone即将面世,而关于其传闻更是数不胜数,此前下一代iPhone的零部件还被泄露,不过现在看来泄露的部件也很像是iPad上的。不过遗憾的是,它们并不适合iPad4。 泄露的部件很真实,据称有新的基座连接器、8阵脚(也可能是9阵脚)的连接口以及一个可逆插头。苹果公司甚至还采用了塑料材质的部件以搭配黑色或白色款式的设备。我们知道这应该是适用于iPad上的,因为它们比iPhone上相类似部件要大得多,不过它们也不像是iPad4上的,因为iPad3今年3月才刚刚发布,关于iPad4的传闻还不成熟。因此,这应该是iPad Mini的传闻。 为什么这么有趣呢? 虽然说本质上没有什么创新,但是iPad Mini如果以比499美元的iPad3(以及仍在销售的iPad2)的售价还要低的话,可以证明iPad Mini会和苹果公司发布的iPhone一样畅销。 据国外媒体报道,最近对平板电脑做了项调查,以此看看公众对平板电脑的欢迎度。结果证明iPad果断的占有全球市场。不过现在的问题是如果iPad的价格仍然在500美元左右,那么这将是一个比较高的价位,消费者会将其列入奢侈品行列。 因此对iPad来说,以较低的价格进入平板电脑市场会吸引更多的买家。 如果iPad Mini的售价在299美元以下,那么苹果公司又能卖出多少呢?有传言称,苹果正计划从9月份开始大规模生产iPad Mini

Mac最新资讯:苹果发布带有双摄+带触控板的妙控键盘的新款iPad Pro

孤街浪徒 提交于 2020-03-19 18:37:43
3 月,跳不动了?>>> 准备入手新款iPad Pro吗?就在刚刚苹果发布了新款的 iPad Pro,本次发布的新款 iPad Pro 包含 11 英寸和 12.9 英寸两款机型。 新的 iPad Pro 搭载了全新的 A12Z 仿生处理器,背面配备双摄像头设置。此外苹果还推出了一款新的 iPad Pro 妙控键盘,内置触控板,这似乎也是新 iPad Pro 最大的一个亮点之一。接下来小编带大家先来看看本次的主要升级: 这款 iPad Pro 搭载了新的 A12Z 芯片以及 8 核图形处理器,A12Z 仿生为应对各种工作而设计,运行专业类应用更是它的强项。8 核图形处理器可为 4K 视频剪辑、3D 设计和增强现实等任务带来流畅表现。增强的散热设计,可确保更高的峰值和更持续的性能表现,这对处理专业级工作来说至关重要。苹果设计的神经网络引擎,则让设备端的机器学习技术为下一代专业类应用准备就绪。 新 iPad Pro 的另一个卖点是配备 1200 万像素广角摄像头和全新的 1000 万像素超广角摄像头,再加上录音棚级的麦克风和四扬声器系统。摄像头还配备了激光雷达扫描仪,激光雷达 (LiDAR 光探测和测距) 这项先进技术,是通过测量光触及物体并反射回来所需的时间,来确定距离。特制的激光雷达扫描仪利用直接飞行时间 (dToF),测量室内或室外环境中从最远五米处反射回来的光

When do you call the super method in viewWillAppear, viewDidDisappear, etc…?

天涯浪子 提交于 2020-03-16 02:38:00
问题 In UIViewController's documentation, Apple suggests calling the super at some point in the implementation of viewWillAppear, viewDidAppear, viewWillDisappear, viewDidDisappear, etc... For example, the discussion on viewDidDisappear is: You can override this method to perform additional tasks associated with dismissing or hiding the view. If you override this method, you must call super at some point in your implementation . My question is does it matter when the super method is called and, if