Posts

Post not yet marked as solved
2 Replies
626 Views
I know that I can uniquely identify a PHAsset on a given device using localIdentifier but if that asset is synched (through iCloud, say) to another device, how to I uniquely identify that asset across multiple devices? My app allows users to store their images in the standard photo gallery, but I have no way of referring to them when they sync their app profile to another iOS device with my app installed.
Posted Last updated
.
Post not yet marked as solved
1 Replies
901 Views
I'm trying to handle a mouse scroll wheel in one of my views (to invoke my zoomIn/zoomOut methods) using a UIPanGestureRecognizer with: UIPanGestureRecognizer* panRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:myView action:@selector(handlePanGesture:)]; panRecognizer.allowedScrollTypesMask = UIScrollTypeMaskDiscrete; [myView addGestureRecognizer:panRecognizer]; My handlePanGesture method is successfully called twice (once for UIGestureRecognizerStateBegan and UIGestureRecognizerStateEnded), but... then what do I do? The passed UIPanGestureRecognizer* has numberOfTouches = nil, and I can't get any further info about the scroll wheel UIEvent from UIGestureRecognizer or its superclass. How to I tell if it was a scroll up, or a scroll down? See: wwdc20-10094
Posted Last updated
.
Post not yet marked as solved
3 Replies
660 Views
I've been looking for a way to find the actual "dihedral" angle between a plane (ARPlaneAnchor) and the local gravitational plane. Think "calculating the grade of a wheelchair ramp (i.e. its slope) using data from an iPhone." I realize that this is very roughly provided in the alignment member of an ARPlaneAchor, as either .horizontal or .vertical, but what about planes in between? Presumably ARKit is using this angle to classify a plane as horizonal or vertical. Is there an easy way to access the raw data, or to otherwise access that infomation? I have also looked at the "CaptureSample" example, in which I can get a gravity vector using CoreMotion, but there's no obvious way to correlate what's in a scene with gravity.
Posted Last updated
.
Post not yet marked as solved
1 Replies
816 Views
4 years ago, a fellow developer asked this same question - https://developer.apple.com/forums/thread/46529: Is it possible to configure WiFi device without WAC feature? ...and I find myself in a similar situation without much more information, 4 years on. All I want to do is improve the user experience of configuring our device simply to connect to the "home WiFi" network. Is there any way to do that besides the process described here? - https://developer.apple.com/forums/thread/46529?answerId=136207022#136207022 Is it still really necessary to apply for the Apple MFi program to do this one simple operation? - https://mfi.apple.com/faqs#qc1 Thanks.
Posted Last updated
.