ios9

Specify Spotlight keywords iOS 9

你。 提交于 2019-12-03 23:15:37
问题 In iOS 9, is there a way to give spotlight a list of keywords by which users can search for a specific app? Example scenario: App Title (as displayed on spring board): "Photos," but User searches for "Pictures" or "Photographs." If not, are the keywords as listed in the App Store used index the app on the device? 回答1: CoreSpotlight Framework does it. https://developer.apple.com/library/prerelease/ios/documentation/CoreSpotlight/Reference/CoreSpotlight_Framework/ https://www.shinobicontrols

Handoff and Universal Links failed on iOS 9

扶醉桌前 提交于 2019-12-03 23:07:12
I am setting up my apple-app-site-association file follow this tutorial: Handoff works on iOS 8 but handoff does not work on iOS 9. I setup a free hosting site and upload the apple-app-site-association file onto the root of website: universallink.net46.net 1. I created a JSON file and named it handoff.json: { "activitycontinuation": { "apps": ["XXXXXXXXXX.com.home.handoff"] }, "applinks": { "apps":[], "details": { "XXXXXXXXXX.com.home.handoff": { "paths":["*"] } } } } The XXXXXXXXXX here is the team id of the Distribution provisioning profile I used Keychain Access app to export a iPhone

WKWebView iOS9 加载H5界面失败

心已入冬 提交于 2019-12-03 21:26:29
前几天看到群里面的小伙伴说碰到一个奇怪的问题, 说 WKWebView 加载H5界面, 在iOS10 ,iOS11上都可以,但是iOS9就会失败. 当时想了一下WKWebView是在iOS8 推出来的, API接口都是一样的,怎么会不好用, 一开始觉得代码写错了. 但是想到WKWebView加载H5,也就几句代码的事情,又能出什么问题. 然后怀疑前端是不是限制iOS运行的版本, 回答也是没有限制. 奇了怪哉.就顺手点了问题小哥的H5界面 https://appweb.hjh365.com.cn/index.html 当然这个界面 现在好好地.已经改好了 当时用iOS9的模拟器加载界面,发现确实是无法显示,然后用Safari连接模拟器调试 >> 右键检查 可以看到虽然模拟器白屏什么也没显示, 但是界面元素 和 js文件 已经加载好了的. 但是为什么没显示出来呢 页面刷新一下,看到报了一个js错误. 如下图 CSDN真的是越来越蠢了,怪不得被这么多技术网站甩远了,传一个图片各种报错,或者显示不出来 js在这里发现一个错误,就不会往下执行了 在控制台中复制这句话, 发现 不支持 let 声明 然后前端的人对这个就会很敏感了. let是 ES6的语法,ES5并不支持let声明. 那为什么只是iOS9 有问题呢. 问题就是就这个问题. 来源: CSDN 作者: iOSYangming 链接:

ios9版本的iphone,不执行网页js

…衆ロ難τιáo~ 提交于 2019-12-03 21:25:16
最近做的项目中,出现了个比较奇怪的现象,具体现象:就是ios机型下,ios9相关版本的机子打开我的网页后,js代码不执行,将我自身写的代码注释掉后,可以执行其他的js。 此问题暂时找不到原因,但初步认为是js里面某些api不支持导致的报错。使用window.onerror函数也捕捉不到全局报错。 找到原因:原来是swiper.min.js引用了swiper.min.js.map, 而一般来说我们只会去引用swiper.min.js这个js文件而已 解决办法:官网下载swiper.min.js.map,或者将swiper.min.js最后一行 删除掉即可。 转自阮大大的博客:"简单说,Source map就是一个信息文件,里面储存着位置信息。也就是说,转换后的代码的每一个位置,所对应的转换前的位置。有了它,出错的时候,除错工具将直接显示原始代码,而不是转换后的代码。这无疑给开发者带来了很大方便。" 官网答疑链接: https://www.swiper.com.cn/usage/errorTip/index.html 一般来说没有ios模拟器用真机去测试还真看不出来问题原因。 来源: CSDN 作者: 为什么昵称被占用了啊 链接: https://blog.csdn.net/u011423258/article/details/82591504

How to use new San Francisco font in iOS 9?

橙三吉。 提交于 2019-12-03 18:38:23
问题 Before iOS 9 to reference fonts we used fontWithName of UIFont : [UIFont fontWithName:@"HelveticaNeue" size:18] Now we're moving to iOS 9. How to reference a new San Francisco font in the same way? We can use it with systemFontOfSize of UIFont , but how to reference styles other than regular? For example, how to use San Francisco Medium or San Francisco Light fonts? 回答1: In iOS 9 it is the system font, so you could do: let font = UIFont.systemFontOfSize(18) You can use the font name directly,

Custom Google Sign-In button - iOS

筅森魡賤 提交于 2019-12-03 18:38:15
问题 I want to customize Google Sign-In button like below:- I have tried below links, but none of them helped really much:- How to customize google sign in button? https://developers.google.com/identity/sign-in/ios/ Could somebody please guide what I should do? I can't use Google+ Sign-In button because "Google+ Sign-In is deprecated". Edited:- I tried the code provided on below link:- https://developers.google.com/identity/sign-in/ios/sign-in#add_the_sign-in_button 回答1: You can add your own

Trying to do screen capture with private framework IOSurface no longer seems to work in iOS 9

[亡魂溺海] 提交于 2019-12-03 17:31:19
问题 I'm working on an existing (non app-store) app for a client that uses the IOSurface private framework to do screen captures while in the background. There are a few threads here on SO that outline the technique, as well as several open source example projects. Again, this is an internal application used by the client. It isn't intended for app-store release, so the fact that it uses private frameworks is acceptable. Here is an example project on Github that uses a very similar technique:

iOS 9 UI Testing - Test Fails Because Target Control Isn't Available (yet)

家住魔仙堡 提交于 2019-12-03 17:28:45
I am testing the new UI testing functionality of Xcode 7 (introduced in the WWDC 2015 video " UI Testing in Xcode "). On launch, my app animates a "login panel" into view, by updating the value of its vertical layout constraint: the panel slides up into view from beneath the main view (off screen). The panel contains two text fields, for user name and password . When you tap the return key on the keyboard for the user name text field (labeled "Next"), the password textfield becomes first responder. When you tap the retrun key for the password text field (labeled "Go"), the panel is "dismissed"

What is nonnull in objective C?

≯℡__Kan透↙ 提交于 2019-12-03 17:11:48
问题 Can someone elaborate why is nonnull introduced in iOS 9 ? For example, the NSArray method + (instancetype)array; is now + (instancetype nonnull)array; Refer to : https://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS90APIDiffs/frameworks/Foundation.html Is this an objective-c level feature, and how would this affect the existing apps ? 回答1: They have made sure that wherever the type is not-nullable it is now a nonnull type. Like earlier NSMutableArray addObject method

Updated to Xcode 7.0.1 and Project now has problems

℡╲_俬逩灬. 提交于 2019-12-03 17:04:43
So I uploaded my Xcode 6.1 build to iTunes Connect and the app was approved. Now i'm trying to update the app and I updated to Xcode 7.0.1 and Xcode is giving me problems stating: (For app I used storyboards and Objective-C) warning: All interface orientations must be supported unless the app requires full screen. warning: A launch storyboard or xib must be provided unless the app requires full screen. - (NSUInteger)supportedInterfaceOrientations { return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown); } What's the new supported interface orientation for