ios9

Crash after presenting View Controller modal on iPhone

依然范特西╮ 提交于 2019-12-11 10:06:14
问题 I´m trying to implement a Popover for iPad and iPhone. Before iOS 9, there were different ViewController for iPad and iPhone. With iOS9 there should be a possibility to do this with a normal ViewController and different PresentationStyles? (Deployment Target is iOS 9.0) Am i right? according to this post: Stackoverflow answer from Daniel Galasko I tried to implement this answer in objective c. _mediaTypePopoverVC = [[MediaTypePopoverVC alloc] initWithProductId:PRODUCT_ID_NONE_PARENT];

Is 'performFetchWithCompletionHandler' called when no internet connection?

…衆ロ難τιáo~ 提交于 2019-12-11 09:45:44
问题 Will the UIApplicationDelegate call performFetchWithCompletionHandler if device is not connected to the internet ? The documentation isn't clear in this case. 回答1: After some tests I can claim that performFetchWithCompletionHandler delegate method is not called if device is not connected to the internet. Tested on iOS8 and iOS9. 回答2: -application:performFetchWithCompletionHandler: isn't called when a download has completed. It's called by the system to give your app a chance to download data.

can't figure out how to embed my current location in message body correctly using CLPlacemark

烈酒焚心 提交于 2019-12-11 09:39:55
问题 I had hardly tried few days ago to embed my current location in Message body on my iPhone, but I failed. I tried all I have in my mind, but I only got errors Last error I got is "fatal error: unexpectedly found nil while unwrapping an Optional value" I created an object of CLPlacemark and I made it optional, which means it could have value or could have nil. is there any way to create a message with my current location ? MainMenu file import UIKit import Social import MessageUI import

How can I awake my iPhone app in the background to run a function and return the results to Apple Watch?

孤人 提交于 2019-12-11 04:26:33
问题 I have a table in my Apple Watch app that is populated by data from the iPhone app. On the iPhone app, I need to get this data from the internet. On the phone, the function is called retrieveData(). I also have a function called sendToWatch() that sends this data to the watch when the phone app is open. I'd like to find a way to run retrieveData() and sendToWatch() without needing to open the phone app. I've looked into this for the past few hours, and it seems very complicated. I've tried

iOS 9 crash when presenting UIActivityViewController : [UIView _fromWindowOrientation] unrecognized selector sent to instance (UIView)

一个人想着一个人 提交于 2019-12-11 04:01:37
问题 My app is crashing any time I present a UIActivityViewController , only on iOS9. I've isolated the code down to this: (Cleared everything from the AppDelegate minus setting my test view controller as the root and only VC). In the test view controller on button tap: (I made the activityVC an instance property to check if there was a deallocation issue because other debugging efforts suggested that the activityVC might get dealloced during presentation) NSString *string = @"PLS WORK"; self

Unable to add google sign in in ios 9.0

自古美人都是妖i 提交于 2019-12-11 03:49:19
问题 I had followed all the steps given in developers.google.com. When I try to do #import <GoogleSignIn/GoogleSignIn.h> [GIDSignIn sharedInstance].clientID = kClientID; Got clientID from my plist file. But it shows linker errors like Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SFSafariViewController", referenced from: objc-class-ref in GoogleSignIn(GIDSignIn.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see

JavaScriptCore crash on iOS9

旧城冷巷雨未停 提交于 2019-12-11 03:34:01
问题 Encountering a crash for a iOS9 only. The crash is manifesting in JavaScriptCore though I'm not certain it has anything to do with JavaScriptCore. I'm more inclined to believe this is an issue with memory exhaustion more specifically and possible virtual memory exhaustion. As noted in the screenshot free RAM is exceptionally low so it's definitely not an ideal situation. I don't know enough about iOS internals to entirely what's going on here but wondering if there's others out there who have

Touch detection doesn't work on simulator for iOS 9

北城以北 提交于 2019-12-11 03:34:00
问题 I've updated Xcode to Xcode 7. Then my Swift project to Swift 2. At last I removed removed all warnings. First scene display few SKLabel and few SKSpriteNode . Using iOS Simulator, touch detection doesn't work under iOS 9 but is ok on iOS 8. A breakpoint put on touchesBegan method show this method is not called. override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { // Breakpoint is set here } EDIT Removing these messages does not solve anything. Console display

how to share content on facebook, twitter and instagram using SLComposeViewController swift

两盒软妹~` 提交于 2019-12-11 00:43:10
问题 i want to share content and images on social media using SLComposeViewController in swift. i have also done it in objC but i am new in swift development.please suggest me if there is any common class for this or Any library to share content on social media in swift. 回答1: There is no need of library. What you need to do is: 1) Just import the Social framework. 2) Code to post on Facebook let vc = SLComposeViewController(forServiceType: SLServiceTypeFacebook) vc.setInitialText("Picture Text")

Doesn't show the back button in navigation bar in ios 9

点点圈 提交于 2019-12-11 00:28:28
问题 I have updated ios 9 in my phone. After that I have installed my app in my phone. I have faced the problem for doesn't show the back button in navigation bar. but show the back button in navigation bar in ios 8. what is the problem for that? How can I resolve that problem? 来源: https://stackoverflow.com/questions/32687549/doesnt-show-the-back-button-in-navigation-bar-in-ios-9