ios9.1

Is there a way to save a Live Photo to the Photo Library?

二次信任 提交于 2019-12-03 18:53:32
问题 I'm passing stored image and video files to: PHLivePhoto.requestLivePhotoWithResourceFileURLs and getting a PHLivePhoto object that I can display in PHLivePhotoView . But I am wondering, once I have a PHLivePhoto is there a way to save it to the Photo Library? 回答1: NSURL *photoURL = ...; NSURL *videoURL = ...; [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset]; //These types should be inferred from your

How can I do a Facebook login using Swift 2.0 and iOS 9.1?

最后都变了- 提交于 2019-12-03 08:02:17
I have added the latest Facebook SDK to my XCode 7.1 project written for iOS 9.1 . Unfortunately all I know is Swift , not Objective C . Facebook's developer site documentation only has the documentation in Objective C . Every search on Google reveals documentation that is just too old because things have changed so much just in the past 6 months. So I'm kind of lost. I did all the easy stuff with the plist file. I was able to use: import FBSDKCoreKit import FBSDKLoginKit I also added: return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication:

PayU Money Gateway iOS Swift

我们两清 提交于 2019-12-02 22:18:58
问题 I want to integrate the payU Money sdk in my app using swift2.0 I am using this sdk: https://github.com/payu-intrepos/Documentations/wiki/8.1-NEW-iOS-Seamless-SDK-integration Where to create the test account for testing. 回答1: import UIKit var merchantKey="your live merchant key" var salt="your live merchant salt" var PayUBaseUrl="https://secure.payu.in" class PaymentScreen: UIViewController,UIWebViewDelegate { @IBOutlet weak var myWebView: UIWebView! override func viewDidLoad() { super

PayU Money Gateway iOS Swift

时间秒杀一切 提交于 2019-12-02 11:17:37
I want to integrate the payU Money sdk in my app using swift2.0 I am using this sdk: https://github.com/payu-intrepos/Documentations/wiki/8.1-NEW-iOS-Seamless-SDK-integration Where to create the test account for testing. dewanshu sharma import UIKit var merchantKey="your live merchant key" var salt="your live merchant salt" var PayUBaseUrl="https://secure.payu.in" class PaymentScreen: UIViewController,UIWebViewDelegate { @IBOutlet weak var myWebView: UIWebView! override func viewDidLoad() { super.viewDidLoad() self.initPayment() } func initPayment() { var i = arc4random() let amount = "1" let

iOS app camera access denied iOS 9.1(black screen)

☆樱花仙子☆ 提交于 2019-12-01 23:34:32
问题 I want to access camera in my app. I am trying the following code. if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType = UIImagePickerControllerSourceTypeCamera; if(isIOS8SystemVersion) { [[NSOperationQueue mainQueue] addOperationWithBlock:^{ [self presentViewController:picker animated:YES completion:NULL];

iOS app camera access denied iOS 9.1(black screen)

不打扰是莪最后的温柔 提交于 2019-12-01 20:56:15
I want to access camera in my app. I am trying the following code. if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType = UIImagePickerControllerSourceTypeCamera; if(isIOS8SystemVersion) { [[NSOperationQueue mainQueue] addOperationWithBlock:^{ [self presentViewController:picker animated:YES completion:NULL]; }]; } else { [self presentViewController:picker animated:YES completion:NULL]; } } This code works on

How to lock viewController in Portrait mode

丶灬走出姿态 提交于 2019-11-30 05:59:59
问题 I am woking on iOS application in swift. I have used UITabBarController as a rootViewController. I have list of videos in one viewController. This viewController supports only portrait mode and user select a video then enter playerController using showViewController method, that can support both orientation (Portrait and Landscape mode). If video finished then playerController pop to video list controller.Every things is fine but user can rotate screen during the finishing the video(like

Is there a way to save a Live Photo to the Photo Library?

别等时光非礼了梦想. 提交于 2019-11-30 02:26:45
I'm passing stored image and video files to: PHLivePhoto.requestLivePhotoWithResourceFileURLs and getting a PHLivePhoto object that I can display in PHLivePhotoView . But I am wondering, once I have a PHLivePhoto is there a way to save it to the Photo Library? NSURL *photoURL = ...; NSURL *videoURL = ...; [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset]; //These types should be inferred from your files //PHAssetResourceCreationOptions *photoOptions = [[PHAssetResourceCreationOptions alloc] init]; /

'Communications error: <OS_xpc_error:' while recording video

醉酒当歌 提交于 2019-11-29 05:22:56
I am recording video using my application for 4-5 minutes, each time application shows following message in console and crashes. warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available. Communications error: <OS_xpc_error: <error: 0x19d846af0> { count = 1, contents = "XPCErrorDescription" => <string: 0x19d846e50> { length = 22, contents = "Connection interrupted" } }> iOS version : 9.1 Device : iPhone 5S, 6 and 6+. Same thing works like charm in other version below 9.1. is anyone aware about

How to lock viewController in Portrait mode

巧了我就是萌 提交于 2019-11-28 13:00:26
I am woking on iOS application in swift. I have used UITabBarController as a rootViewController. I have list of videos in one viewController. This viewController supports only portrait mode and user select a video then enter playerController using showViewController method, that can support both orientation (Portrait and Landscape mode). If video finished then playerController pop to video list controller.Every things is fine but user can rotate screen during the finishing the video(like remaining time 1 or 0 second) then video list viewController enter in Landscape mode. I have tried this