ipados

Getting a custom UIView to respond to a two finger trackpad scroll gesture (or mouse scroll wheel)

非 Y 不嫁゛ 提交于 2020-08-04 23:14:09
问题 I have an iPad app (in C#) with a custom UIView that allows input via touch and Apple Pencil stylus touches. I am trying to integrate support for trackpad/mouse indirect (cursor, or "pointer" as Apple calls it). I got hover working using HoverGestureRecognizer. I got right-click and control-click working using normal touch Began/Moved/Ended/Cancelled events and checking for .type == .indirectPointer and then checking if the control key modifier in event.ModifierFlags is set, or if event

Editing PKDrawing in PencilKit

橙三吉。 提交于 2020-07-21 05:23:32
问题 When using PencilKit in iOS 13/iPadOS, how do you change the content in PKDrawing? For example, can I go through all the lines and change the color or width of the lines? Or for selected lines (via lasso)? Or add a straight line in our own code? 回答1: PKDrawing is listed as an Opaque data object. See this Wikipedia Link for an explanation of opaque data object. Unfortunately strokes are not exposed to us. Our only 2 options currently can be found in the docs under Modifying the Drawing.

How to detect iPad Pro as iPad using javascript?

穿精又带淫゛_ 提交于 2020-06-25 10:35:08
问题 We were able to detect an iPad device using javascript like this: function isDeviceiPad(){ return navigator.platform.match(/iPad/i); } That worked perfectly in detecting iPad devices, but when we checked from an iPad Pro (10.5 inch) , it does not detect that it is an iPad. To further investigate, we drilled down into the navigator object, checked both platform and userAgent , and got these results: navigator.platform = 'MacIntel'; navigator.userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X

Why the call to super is the last thing on this method and not the first thing?

会有一股神秘感。 提交于 2020-03-05 04:59:07
问题 I am learning Swift as I go. I found functions like this viewDidLoad() and many others are sometimes written like this: override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } and sometimes written like this: override func viewDidLoad() { // Do any additional setup after loading the view, typically from a nib. super.viewDidLoad() } I mean with the call to super.viewDidLoad() as the first thing or as the last thing inside the

Screen rotation glitch on iPadOS 13

坚强是说给别人听的谎言 提交于 2020-02-05 07:02:32
问题 I've been dealing with a UI glitch on iPadOS 13.1.3 that is related to device orientation. Is there any solution or workaround for this? Issue Description Let's have screen A that displays modally screen B. Screen A is locked to portrait only and screen B supports all orientations. If screen A is displayed, device is rotated to landscape then and screen B is about to be displayed, screen A is resized incorrectly first which results a wierd glitch. Images The left images is taken on iPadOS 13

Flutter/Firebase Storage - Attempting to upload images from gallery generates unknown error

早过忘川 提交于 2020-01-25 09:23:06
问题 I am building a photo app that uploads photos selected from the devices gallery. The uploads work great in the simulator for iOS13, but when I test on my iPad (iPasOS 13), the uploads always fail with 'Unknown Error' code. The app has permissions to access the gallery (otherwise I wouldn't be able to select images from the gallery before attempting the upload). I am attaching photos of the same build succeeding in iOS simulator and failing on my iPad. Any idea why this could be happening? I

How can I hide the new url bar on iPad Safari WebApp fullscreen mode, appearing since iPadOS 13?

爱⌒轻易说出口 提交于 2020-01-21 18:04:20
问题 iPadOS 13 now shows a white/grey bar when a WebApp is installed via 'Add to Home Screen' on Safari, even when apple-touch-fullscreen meta tag is added. The bar includes a menu to resize font and request desktop site, but has affected the available screen size so that the users now have to scroll to view the app menu. Is there any way to hide this bar, such as forcing either Desktop/Mobile site so that the selection is not required? 回答1: I have found out the solution to this. iPadOS does add

FIRAnalyticsConnector: building for Mac Catalyst, but linking in object file built for iOS Simulator

前提是你 提交于 2020-01-14 06:59:06
问题 When trying to build for Mac using Catalyst, I get the following build error: FIRAnalyticsConnector(FIRConnectorUtils_77ff1e12be6740765c87f1be0d421683.o), building for Mac Catalyst, but linking in object file built for iOS Simulator The project builds fine for iOS andiPadOS. 回答1: The problem was related to the difference between Firebase/Core and FirebaseCore. The first is a subspec of the Firebase pod that depends on FirebaseAnalytics. The second is only the FirebaseCore pod. Only the latter

Tell iPadOS from macOS on the web

限于喜欢 提交于 2020-01-09 19:56:29
问题 The user agent of Safari on iPadOS beta is at this point exactly the same as Safari on macOS. Is there any other way to tell an iPad from a Mac? iPad running iOS Mozilla/5.0 (iPad; CPU OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.0 Mobile/14G60 Safari/602.1 iPadOS, developer beta 1 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 iPadOS, beta 2, simulator Mozilla/5.0 (Macintosh; Intel Mac OS X 10

How to realize a movable controller in iPadOS, like mail APP in iPad

冷暖自知 提交于 2019-12-24 22:27:46
问题 Mail App in iPad, when we create a new mail, the controller will be presented. But in iPadOS system, this controller can be moved, and if move it to the left side or right side, it can become a multiple window. How Apple to realize this feature? I try a lot new API about UIViewController but it does not work. 来源: https://stackoverflow.com/questions/57238686/how-to-realize-a-movable-controller-in-ipados-like-mail-app-in-ipad