ios9

User list for pubnub-chat objective c

余生长醉 提交于 2019-12-13 02:26:46
问题 I have application where pubnub chat feature is been used. I want to perform below feature 1)register / login user in pubnub programatically for chat 2)Get list of the all the users 3)Make friend and send 1st message to the user I am aware about how to create the channel. I had created channel by below code : PNConfiguration *configuration = [PNConfiguration configurationWithPublishKey:@"pub-c-XXXXXXXXXXXX-a2bf-XXXX-XXXX-XXXXXXXXXXXX"subscribeKey:@"sub-c-XXXXXXXXXXXX-02d0-XXXX-XXXX

Xcode 7 SpriteKit Error with Blocks

醉酒当歌 提交于 2019-12-13 00:28:59
问题 Does anybody know why this won't work anymore in Xcode 7 GM? I have debugged and verified, but even though the nodes are appearing on the scene, they no longer pass touch events to parent nodes. Below is a fully working example. If you replace the default GameScene from the "New Sprite Kit Game" you can reproduce it yourself. class GameScene: SKScene { override func didMoveToView(view: SKView) { let card = Card(imageNamed: "card_background_blank") card.name = "Card" let stack = Stack

Is the newly added 'My Card' that automatically shows up in IOS9 a reliable way to get a users phone number?

早过忘川 提交于 2019-12-13 00:05:47
问题 Am I correct that with a address book permission we should be able to pretty reliably get a users phone number if they have given address book permissions via the new "My Card" contact that seems to be automatically added to your addressbook when you download IOS9? I always wanted to do a find friends but i did not want to force users to type/verify their number....this seems to be a solid work around for ios9 users. 回答1: I am currently dealing with the same issue but unfortunately it seems

Universal Links while app is not running

六月ゝ 毕业季﹏ 提交于 2019-12-12 20:45:56
问题 I am implementing Universal Links in my app. Every things works for me, except when the app is not running in the background. In that case how i can open a specific page in my app? iOS launches my app but i am not getting any callback in - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *))restorationHandler in this function neither i am getting any url with this line NSURL *launchURL = [launchOptions

Can't share text to fb messenger using UIActivityViewController

这一生的挚爱 提交于 2019-12-12 20:09:14
问题 I can share text to whatsapp/message app using NSString* text=@"I am sharing this text"; NSArray* sharedArray=@[text]; UIActivityViewController * activityVC=[[UIActivityViewController alloc]initWithActivityItems:sharedArray applicationActivities:nil]; dispatch_async(dispatch_get_main_queue(), ^{ // code here [self presentViewController:activityVC animated:YES completion:nil];//:activityVC animated:YES]; }); BUt the facebook messenger option is missing when I use this piece of code. I have to

Spritekit/Universal images from assets not showing up on iOS 9?

Deadly 提交于 2019-12-12 19:18:56
问题 I made a universal app using SpriteKit and Swift. Users have sent out bug reports on iOS 9 where sprite node images are showing up white/blank. But I haven't been able to reproduce this in the simulator. The images that don't show up are all device-specific in images.xcassets. The images that do show up are the ones that are universal in images.xcassets. What could I do to solve this (besides making them not device-specific) and could this possibly be an XCode/iOS bug? 回答1: Yeah it's a bug

SWIFT: how to run a function even when user kills the app

落爺英雄遲暮 提交于 2019-12-12 19:16:44
问题 I am using swift 2 and Xcode7 for iOS9. I want to know if I can maintain a function (that checks for something to delete) running "forever" even if the user kills the app? I am deleting contacts from the contact list according to some rules and time. It is running ok, but just with the app opened or in second plan. I want to make this app capable to delete those contacts even when the user kills it. 回答1: You can use background thread when user opens the app. But if the app will be terminated,

At SFSafariViewController dismiss, disable status bar hide animation [iOS 9]

安稳与你 提交于 2019-12-12 18:35:44
问题 I need to disable the "hide animation" of the status bar when the SFSafariViewController is dismissed. After a normal Facebook login, permission request. Because makes a bad animation on frame change.. In my storyboard the status bar is hidden and my views have a constraint "Top space to: Top layout" 回答1: Just found the solution: If i create and present SFSafariViewController with: #import <SafariServices/SafariServices.h> SFSafariViewController *sfc = [[SFSafariViewController alloc]

iOS Localization Doesn't Work with More Than 63 Files

会有一股神秘感。 提交于 2019-12-12 18:16:44
问题 On iOS 9, the localization is not working well when more than 63 localization files are added. If you have minus than 63 files, the translation can work correctly, but when more than 63 files are added the Xcode doesn't call the correct language file, always calling base. On my GitHub example project (https://github.com/munhra/iOSLocalizationExample), there are 64 localization files added to Xcode. If run the project, Xcode doesn't call the corresponding device language. If a translation file

Create home screen quick actions that do not open app?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 17:03:23
问题 I have home screen quick actions for my iOS 9 app, but I don't need it to open the app. It actually schedule reminders and that's it. Is there a way to make the home screen quick action not to open the app? 回答1: Quick actions are designed to be used to quickly navigate to a section of your app, eg on the camera app there is selfie mode, box mode, panorama mode, timelapse mode etc. These are all sections of the app. To the best of my knowledge you cant have a quick action that just runs code