ios10

Universal Links not working on iOS10

前提是你 提交于 2019-11-27 02:18:35
问题 Just updated my iPhone to iOS10 and the Universal links stopped working. If I run my app in an iPhone with iOS9, or lower, the Universal Links work fine, but the are just not working at all in iOS10. Any clues? 回答1: It sounds like you inadvertently deactivated Universal Links. This usually happens if you tap the bypass link in the top right corner of the screen after opening a Universal Link. This is a per-app setting that is saved on each unique device. The setting is preserved even if you

How to check if Haptic Engine (UIFeedbackGenerator) is supported

最后都变了- 提交于 2019-11-27 02:16:43
问题 I am wondering how we could check if the new iOS 10 API UIFeebackGenerator is available on the current device. There are some more things we would need to check: The device needs to run iOS 10.0 or later The device needs to be an iPhone 7 or later The Haptic Engine needs to be turned on in the Settings The first two checks can be achieved using #available(iOS 10, *) statement and a (hacky) device-detection, but the latter one doesn't seem to be checkable. Does someone know a solution for this

iOS 10 Rich Media Push Notification (Media Attachment) in Objective-C

99封情书 提交于 2019-11-27 01:11:09
问题 I want to add Media especially images and videos in iOS 10 Push notification but images are not working in push. How to do that in Objective-C? My Code is as follows: AppDelegate.h #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate,CLLocationManagerDelegate,UNUserNotificationCenterDelegate> @property (strong, nonatomic) UIWindow *window; @end AppDelegate.m - (BOOL)application

Handling user notifications on iOS 10

孤者浪人 提交于 2019-11-27 01:04:29
问题 I have troubles determining when the user taps on a user push notification on iOS 10. So far, I have been using the -[UIApplicationDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] which is called when Case 1 : the application is active and the push is received Case 2 : when the user launched the app after taping a received notification This method comments explicitly say Note that this behavior is in contrast to application:didReceiveRemoteNotification:, which is not

clipsToBounds causes UIImage to not display in iOS10 & XCode 8

巧了我就是萌 提交于 2019-11-27 00:54:34
问题 I switched my project over to new beta versions of iOS 10 and XCode 8. In all three areas of my app where I use: imageView.layer.cornerRadius = imageView.frame.size.width/2 imageView.clipsToBounds = true The associated images are not displaying at all. I have attempted cleaning the project as well as the build folder, restarting the device, trying on various simulators, re-adding the imageView, programmatically setting the associated UIImage instead of choosing one from the assets. Removing

ios10: viewDidLoad frame width/height not initialized correctly

半世苍凉 提交于 2019-11-27 00:17:27
问题 Since upgrading to XCode8 GM and ios10, all of my views created via Interface Builder are not being initialized correctly until much much later than expected. This means in viewDidLoad, cellForRowAtIndexPath, viewWillAppear, etc, the frame size is set to {1000,1000} for every view. At some point they seem to correct, but its far too late. The first problem encountered is with common rounding of corners failing across the board: view.layer.cornerRadius = view.frame.size.width/2 Further

iOS 10 error [access] <private> when using UIImagePickerController

三世轮回 提交于 2019-11-26 23:46:34
I am using XCode 8 and testing with iOS 10.2 Beta. I have added the Photos, PhotosUI and MobileCoreServices frameworks to project. Very simple code: #import <Photos/Photos.h> #import <PhotosUI/PhotosUI.h> #import <MobileCoreServices/MobileCoreServices.h> @interface ViewController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate, PHLivePhotoViewDelegate> @property (strong, nonatomic) IBOutlet UIImageView *imageview; @end and implementation: - (IBAction)grab:(UIButton *)sender{ UIImagePickerController *picker = [[UIImagePickerController alloc]init]; picker

Creating an image format with an unknown type is an error Objective-C Xcode 8

这一生的挚爱 提交于 2019-11-26 22:57:23
问题 While choosing an image from the image picker in iOS 10 Objective-C and Xcode 8 . I am getting an error - Creating an image format with an unknown type is an error . It was ok for the previous version. Here is my code: UIImagePickerController* imgPicker=[[UIImagePickerController alloc] init]; imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; imgPicker.delegate = self; [self presentViewController:imgPicker animated:YES completion:nil]; and the delegate method to recive the

cornerRadius stopped working in Swift 2.3 / iOS 10 / Xcode 8

自闭症网瘾萝莉.ら 提交于 2019-11-26 22:56:09
问题 I have a cornerRadius set on a UIView and a UIImageView inside the same UIView . I am calculating the corner radius with RockProfileView.frame.size.height / 2 but the UIView stopped showing in iOS 10. After further checking i found the value of RockProfileView.frame.size.height / 2 is coming out to be 1000.0 while the width and height constraint is set to 64.0 When I hardcoded the RockProfileView.layer.cornerRadius = 32 to 64/2 it works just fine. What could be the issue ? Full code:

What does deployment target mean?

亡梦爱人 提交于 2019-11-26 22:52:14
问题 this is a very simple question I'm assuming. Can someone tell me what deployment target means. If I choose IOS 10, does that mean only users with iOS 10 can download the app. Is it bad to choose a lower deployment target? ALSO, continuing on deployment target, is it not recommended to run on a lower deployment target. 回答1: Lets say you have set minimum deployment target to iOS 9. This means your application is compatible for iOS 9 and above devices. The application won't run on below 9.0