ios11

How to apply iOS VNImageHomographicAlignmentObservation warpTransform?

谁说我不能喝 提交于 2019-12-01 06:49:05
问题 I'm testing Apple's Vision Alignment API and have questions regarding VNHomographicImageRegistrationRequest. Has anyone got it to work? I can get the warpTransform out of it, but I've yet to see a matrix that makes sense, meaning, I'm unable to get a result that warps the image back onto the source image. I'm using Opencv warpPerspective to handle the warping. I'm calling this to get the transform: class func homography(_ cgImage0 : CGImage!, _ cgImage1 : CGImage!, _ orientation :

ReplayKit: startRecording() completion handler is never entered

旧巷老猫 提交于 2019-12-01 06:09:37
问题 Problem description The startRecording() completion handler is never entered, even though the "Allow screen recording in $AppName" pop-up was shown. The "Allow screen recording in $AppName" pop-up is shown occasionally. This happens also when I remove the app, restart the device and do a clean/build on the project. I'm using an iPad Air 2 with iOS 11 and Xcode 9. Research This problem seemed to be an issue in earlier versions as well, see here: replaykit startrecording sometimes never enters

iOS11 UIBarButtonItem not working

我的未来我决定 提交于 2019-12-01 05:57:37
问题 I have an app that is live in the store. I am trying to get it ready for the iOS11 release but have run into an annoying problem. None of the UIBarButtonItem s in the app are working properly. The leftBarButtonItems are clickable but the click area is slightly to the right of the item. The rightBarButtonItems are not working at all! I have added the items both via the storyboard and via code but none of them seem to be working. Please help! Here's an example:- navigationItem

How to prevent rotation on iOS 11?

三世轮回 提交于 2019-12-01 05:40:01
问题 As of iOS 11.2 I notice that (BOOL)shouldAutorotate, (BOOL)shouldAutorotateToInterfaceOrientation, (UIInterfaceOrientationMask)supportedInterfaceOrientations etc. are no longer called. How do I prevent rotation to a certain orientation now? I can switch off rotation on the Deployment level of the target, but what I actually want it to switch off rotation just for the iPhone X. I have an older app without storyboards, and don't want to change the app to honour the silly notch in the screen in

iOS 11 Safari HTML - Disable “Smart Punctuation”?

被刻印的时光 ゝ 提交于 2019-12-01 05:23:45
问题 Is there a good way to disable the " Smart Punctuation" the iOS 11 Apple Keyboard generates - in Safari on an HTML login form - username field in particular? The problem is that we have users with apostrophes in their usernames. Typing their usernames on iOS 11 and not knowing the subtleties of unicode they are not able to sign in. Ideally we could just instruct such users to disable smart quotes or type the proper character by holding down the apostrophe key - but I am working on educational

iOS11 UIBarButtonItem action not get called

南楼画角 提交于 2019-12-01 04:09:08
I used Xcode9 Beta6 to build the project, the action was called correctly on iOS10 device, however it is not work on iOS11 device. In My project, there are some viewControllers have a UIToolBar on the top, and the toolBar contains some UIBarButtonItems. There is one this kind of viewController, whose UIBarButtonItem action is not called when I tap the UIBarButtonItem. I can see the tapping animation (the icon become dim first and back to normal after finger released) At the end of viewDidLoad , I print the info of toolbar.items to indicate that target action are set properly. Debug Output I

iOS11 AppIcon can't change

最后都变了- 提交于 2019-12-01 04:09:05
Xcode 9 beta 6 iOS 11 beta 10 I want package application with custom App icon , so I try to replace AppIcon.png files at DerivedData (/Users/XXX/Library/Developer/Xcode/DerivedData/project/Build/Products/Debug-iphoneos/xxx.app) It worked at iOS 10, but doesn't work at iOS 11 Can anybody solve it? Thanks for advance I have found a solution. I change app icons in the source .xcasset folder, not in Derived Data (using ImageMagick). So, here is my script: #!/bin/bash IFS=$'\n' BASE_ICONS_DIR=$(find ${SRCROOT}/${PRODUCT_NAME} -name "AppIcon.appiconset") IFS=$' ' CONTENTS_JSON="${BASE_ICONS_DIR}

iOS Share Extension crashes when sharing from iOS 11 Screenshot

╄→гoц情女王★ 提交于 2019-12-01 03:42:09
I'm working on an iOS app that uses a photo share extension, where the image is processed and our main function is triggered. In the simulator on the Photo's app, this works great. I decided to run on the device from the Photo's app and it also works great, but when I screenshot and try to share from iOS 11's new "Quick screenshot" the extension crashes, any ideas? The extension takes an image, sends it to the server, gets a response and displays that response (all in the extension). This annoys me as Messenger and Snapchat share extensions still work when accessed from a quick screenshot!!

Hide large title when scrolling up

こ雲淡風輕ζ 提交于 2019-12-01 03:29:58
I have a normal view controller that is embedded in a navigation controller. In this view controller, I have a table view that is using the constraints of the safe area. (I don't use a table view controller) The navigation controller is set to prefer large titles and the mode is set to .always. In beta 2 this worked perfectly, So when I came in the title was large and when I scrolled down it became small (Like the normal one). But since beta 3 this doesn't work anymore. Anyone know how to turn this back on, or how to make it so when I scroll the table view it will become smaller. Like the

iOS 11 - Core Data - UIColor no longers works as transformable attribute

妖精的绣舞 提交于 2019-12-01 03:16:49
I store colours in my binary Core Data store using a transformable attribute, specifying the class of the attribute as UIColor like so: #import "CoreDataEntity+CoreDataClass.h" #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface CoreDataEntity (CoreDataProperties) + (NSFetchRequest<CoreDataEntity *> *)fetchRequest; @property (nullable, nonatomic, retain) UIColor *transformable; @property (nullable, nonatomic, copy) NSString *string; @end NS_ASSUME_NONNULL_END In the iOS 11 Beta this has stopped working with an error like this : NSUnderlyingException=value for key 'NS.objects' was of