ios10

Reset Viewport Zoom on iOS10 with Javascript

心不动则不痛 提交于 2020-08-06 07:53:21
问题 I have a page that I need to reset the viewport scale (the pinch zoom) on command, setting it back to the initial zoomed out state. Looks like the old tried and true method of rewriting the meta viewport: const viewportmeta = document.querySelector('meta[name="viewport"]'); viewport.attr('content', "initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"); doesn't seem to have any effect anymore on ios10 (page remains zoomed in). Is there any way around this? Update .attr is a jquery method,

Reset Viewport Zoom on iOS10 with Javascript

别说谁变了你拦得住时间么 提交于 2020-08-06 07:52:27
问题 I have a page that I need to reset the viewport scale (the pinch zoom) on command, setting it back to the initial zoomed out state. Looks like the old tried and true method of rewriting the meta viewport: const viewportmeta = document.querySelector('meta[name="viewport"]'); viewport.attr('content', "initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"); doesn't seem to have any effect anymore on ios10 (page remains zoomed in). Is there any way around this? Update .attr is a jquery method,

Shortcuts or autofill for contact info in UITextFields

孤街醉人 提交于 2020-06-25 08:45:24
问题 When I'm in Safari in iOS, and I hit a form that requires I enter name and address, I get shortcuts in the keyboard area. For example, here is the keyboard when the focus is in a first name field. I can tap "Robert" instead of typing a name. A similar thing happens for fields for last name, phone, email, zip code. Can I get a similar thing in a native iOS app, in a UITextField ? Is there a way to mark a field so that the keyboard will offer these shortcut suggestions? 回答1: You can turn on or

Notificaton Service Extension Not working

﹥>﹥吖頭↗ 提交于 2020-06-14 06:53:44
问题 Notification is not being displayed when I send mutable-content:1 with push payload neither it hits the breakpoint inside the Notification service extension, although without mutable-content push is being displayed, also Notification content extension is working fine. I did not modified the code inside Notification service extension its the default generated by the Xcode. Am I missing something while creating notification service extension or it might be the issue with the device setting. I

How to access People album used in Apple's Photos app

痞子三分冷 提交于 2020-06-12 04:54:25
问题 Apple's Photo app has facial recognition capabilities. I would like to know if an API exists to access the associated data for photos which have been classified by the app. (tagged with API, not sure which tags.) Thanks! 回答1: Apple released an SDK for accessing Apple Photos called Photo Kit. In the documentation, you will find API access to the photos application and photos cloud. However, if you are looking for an HTTP API I do not believe one has been announced publicly. If you only need

NSFetchedResultsController returns duplicates (the same objectID and reference)

强颜欢笑 提交于 2020-05-08 11:35:44
问题 I'm experiencing a weird behaviour with NSFetchedResultsController. It is new in iOS 10. Straight to the point: fetchedObjects contains duplicate objects. This is not by any mean "duplicate" in my own criteria. They literally have the same objectIDs and the same reference. How does it happen in my app: FRC is setup and fetch performed 2 objects are fetched (in this example) Something happens in my sync layer, another object (that fetch items are in relationship with) is updated FRC calls

NSFetchedResultsController returns duplicates (the same objectID and reference)

*爱你&永不变心* 提交于 2020-05-08 11:34:46
问题 I'm experiencing a weird behaviour with NSFetchedResultsController. It is new in iOS 10. Straight to the point: fetchedObjects contains duplicate objects. This is not by any mean "duplicate" in my own criteria. They literally have the same objectIDs and the same reference. How does it happen in my app: FRC is setup and fetch performed 2 objects are fetched (in this example) Something happens in my sync layer, another object (that fetch items are in relationship with) is updated FRC calls

When is the apple-app-site-association file being fetched?

眉间皱痕 提交于 2020-04-06 05:07:16
问题 I have an application on store right now. It did not worked with universal linking. Then I update application and add Apple-app-site-association file in to my website. Re-install the app is likely the solution, but my app is already distributed in App Store, it is unlikely to ask user to delete it and installed again. Is there any opputunity to let the iOS or app to fetch my updated apple-app-site-association file. 回答1: The short answer is: Only when the app is installed or updated . The good

When is the apple-app-site-association file being fetched?

可紊 提交于 2020-04-06 05:05:13
问题 I have an application on store right now. It did not worked with universal linking. Then I update application and add Apple-app-site-association file in to my website. Re-install the app is likely the solution, but my app is already distributed in App Store, it is unlikely to ask user to delete it and installed again. Is there any opputunity to let the iOS or app to fetch my updated apple-app-site-association file. 回答1: The short answer is: Only when the app is installed or updated . The good