ios9

How to share notes data with share extension in iOS 9?

假如想象 提交于 2019-12-01 07:01:33
问题 My application is working fine till iOS 8 But in iOS 9 Beta I am not able to share Notes text/image so can you please suggest me what thinks I need to implement for this? 回答1: Add **NSExtensionActivationDictionaryVersion** Attributes in your plist file. see this image for reference. 回答2: What to use if I am using NSPredicate for NSExtensionActivationRule? <key>NSExtensionAttributes</key> <dict> <key>NSExtensionActivationRule</key> <string> SUBQUERY( extensionItems, $extensionItem, SUBQUERY (

Add a text label to a polygon in google maps for iOS swift

夙愿已清 提交于 2019-12-01 06:46:56
How do I add a text label on a polygon in Google Maps in iOS ? I tried to add an overlay but it will only accept images not text? I am using google maps for ios with Swift on iOS 9. This is the portion of code troubling me : func updateUIMap(){ var str = "Hello" var data = str.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: true) var drawText = NSString(data: data!, encoding: NSUTF8StringEncoding) let size = CGSize(width: 24.0,height: 24.0) var inImage = UIImage() var textColor: UIColor = UIColor.blackColor() var textFont: UIFont = UIFont(name: "Helvetica Bold", size: 12)!

Drag and reorder - UICollectionview with sections

对着背影说爱祢 提交于 2019-12-01 06:31:25
Is that possible to do drag and reorder from one section to another section from collectionview - iOS 9. Every time am dragging from 1st section to drop at 4th section am getting below crash, Assertion failure in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering: func collectionView(collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: NSIndexPath,toIndexPath destinationIndexPath: NSIndexPath) { let sequence = ArrayrelatedSequence[sourceIndexPath.section] as! SEQ_Sequence relIndexCards = sequence.rel_indexCard if relIndexCards.count > 0 {

Crash on iOS9 with -[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_device_locked:]

泄露秘密 提交于 2019-12-01 06:06:09
My app have recently been getting these crashes from crashlytics that is only happening on iOS9 Fatal Exception: NSInternalInconsistencyException This NSPersistentStoreCoordinator has no persistent stores (corrupt file). It cannot perform a save operation. The last call from the report is -[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_device_locked:] and this is how the NSPersistentStoreCoordinator is created - (NSPersistentStoreCoordinator *)persistentStoreCoordinator{ if (_persistentStoreCoordinator != nil) { return _persistentStoreCoordinator; }

Apple-app-site-association not found

二次信任 提交于 2019-12-01 05:51:45
I'm trying to pass the Apple Search Validation Tool , and I'm having problems with the apple-app-site-association. For some reason the bot can't find my file. But if you open the URL it's there. It's not a formatting problem, because the file isn't even found. I have https so it's not needed to sign my file. I don't have any extension on my file, as asked in the documentation. Someone had a similar problem and asked on the Apple Developer foruns , but it didn't help me. My url is https://ps3looke.ottvs.com.br/apple-app-site-association I tried to check it with cUrl and everything seems normal:

iOS9 universal links do not work from Safari but works from other apps

╄→гoц情女王★ 提交于 2019-12-01 05:44:14
I'm currently implementing iOS9 universal links for a client. After following apple doc and some good tutorials , I succeeded to make it working almost on the first try, using a test links webpage from Safari. But suddently, none of the test links were working anymore! I searched around during the end of the day with no answer, until this morning when I tried to open those test links from Chrome app: that worked again. I'm very puzzled by the fact it worked perfectly yesterday, and something happened preventing Safari to present the app, displaying the website instead (No source/server code

Facebook login page showing blank page in IOS 9

我与影子孤独终老i 提交于 2019-12-01 05:34:35
问题 I am using FBSDKCoreKit (4.12.0) FBSDKLoginKit (4.12.0) first i am getting screen 1 This method is block is never called . FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"email",@"public_profile"] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { //never called }]; getting this warning Warning: Attempt to present <FBSDKContainerViewController: 0x16570810> on <ViewController: 0x16528870> whose view is not

Add a text label to a polygon in google maps for iOS swift

大兔子大兔子 提交于 2019-12-01 05:32:31
问题 How do I add a text label on a polygon in Google Maps in iOS ? I tried to add an overlay but it will only accept images not text? I am using google maps for ios with Swift on iOS 9. This is the portion of code troubling me : func updateUIMap(){ var str = "Hello" var data = str.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: true) var drawText = NSString(data: data!, encoding: NSUTF8StringEncoding) let size = CGSize(width: 24.0,height: 24.0) var inImage = UIImage() var textColor:

GIDSignIn white screen on iOS 9

℡╲_俬逩灬. 提交于 2019-12-01 04:36:29
I implemented Google sign in and everything works on iOS 8. But when I call this line on iOS 9: GIDSignIn.sharedInstance().signIn() I'm able to log in the first time. But if I cancel, the next time I try to log in it shows a white screen where the normal user approval web view would be. This even happens when I delete the app and reinstall it, meaning that something might be getting cached at the OS level. The only solution is to reopen the iOS Simulator or restart my iPhone. I've tried all these answers with no luck. I've also tried GIDSignIn.sharedInstance().signIn().allowsSignInWithWebView

CNContactStore retrieve a contact by email address

我是研究僧i 提交于 2019-12-01 04:20:59
问题 I would like to use the Contacts Framework (IOS 9) to retrieve contacts that matching an email address. Any help will be appreciated. Objective C please. Thanks. 回答1: Add Contacts.framework #import <Contacts/Contacts.h> write code -(void)loadContactList { CNAuthorizationStatus status = [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts]; if( status == CNAuthorizationStatusDenied || status == CNAuthorizationStatusRestricted) { NSLog(@"access denied"); } else { //Create