ios8

How to use Document Provider Extension?

十年热恋 提交于 2019-12-09 11:03:38
问题 I was learning a little more about ios extensions, such as: Today Extension Photo editing Extension Action Extension Custom keyboard Extension In all of them I did not have difficulties in learning, but recently I try to learn the "document provider extension", and to my surprise not found any relevant tutorial on the Internet talking about how to use it (step by step as the others). The only alternative I found was use the documentation, and I learned that he can access shared documents from

XCode 6.0.1 Enterprise In House Distribution Is Not Creating ipa/plist

喜你入骨 提交于 2019-12-09 10:34:12
问题 After upgrading to XCode 6.0.1, in In House Enterprise Distribution from Archive now creates a .pkg file instead of .ipa/.plist files. This breaks our enterprise distribution system. I haven't found any documentation on this change. Does anyone have any insight on this? 回答1: add key "Application supports iTunes file sharing" value YES or "LSRequiresIPhoneOS" value YES to info.plist before choose Archive now.it will built ipa with xcode 6.0.1 来源: https://stackoverflow.com/questions/26022943

iOS 8 - How to determine the foreground app as well as get list of running apps

时光总嘲笑我的痴心妄想 提交于 2019-12-09 08:49:08
问题 On iOS 7.0 and below, SBFrontmostApplicationDisplayIdentifier from the Springboard framework specified the app running in the foreground, but that capability has been blocked (considered as a vulnerability, see the Common Vulnerabilities and Exposures page dedicated to it here) in iOS 8. Does anyone have an iOS 8 alternative for this? 回答1: It is not possible to do it on iOS 8 since a vulnerability was discovered. More info here: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4361 来源:

iTunes Connect Invalid Pre-Release Train.

放肆的年华 提交于 2019-12-09 08:14:01
问题 I received the following error in Xcode when attempting to submit an app archive: ERROR ITMS-9000: "Invalid Pre-Release Train. The train version '2.1.5' is closed for new build submissions" Does anyone have a solution for this? This version was already waiting for review. I rejected it and now am trying to submit a new build. Same version number but I have incremented the build number. 回答1: I had to change the version number in Xcode to 2.1.6 and create a new archive in order for iTunes

iOS 8: UINavigationController hide back button

走远了吗. 提交于 2019-12-09 07:57:01
问题 After I run my application in iOS 8 (XCode 6.0.1, iPhone 6), the back button does not hide. My code: - (void)removeCategoriesButton { if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { [_navigationController.topViewController.navigationItem setHidesBackButton:YES]; [_navigationController.topViewController.navigationItem setLeftBarButtonItem:nil]; } else { UIViewController *controller = _app.window.rootViewController; if ([controller isKindOfClass:[UINavigationController class]]) {

Move to another ViewController

时光总嘲笑我的痴心妄想 提交于 2019-12-09 07:31:28
Im using StoryBoard and i am not so sure how to instantiate a ViewController or how to reference one. The thing is i have two view controllers and i have one with a button. I want to go to the other view controller when i pressed the button from the first view controller. I have tried something like that: let secondViewController:UIViewController = UIViewController() self.presentViewController(secondViewController, animated: true, completion: nil) Does anyone knows how to explain it to me? Thanks! There are couple of ways of navigating between view controllers. Here's how you do it in code

How to solve this error with healthkit?

我是研究僧i 提交于 2019-12-09 06:49:38
问题 I'm adding code for healthkit in my ios Swift app, but I'm getting an error... /* Ask for permission to access the health store */ override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) if HKHealthStore.isHealthDataAvailable(){ healthStore.requestAuthorizationToShareTypes(typesToShare, readTypes: typesToRead, completion: {(succeeded: Bool, error: NSError!) in if succeeded && error == nil{ println("Successfully received authorization") } else { if let theError = error{

Fix div to bottom without using css position

你。 提交于 2019-12-09 06:27:27
问题 I am having issues with position: fixed; on IOS8 Safari. I've determined it's related to the footer div which I am positioning at the bottom of the page. I've also tried position: absolute; but that didn't work either. Does anyone know of a way to position this without using CSS position? Here is the code I'm using: .foot-nav{ position: fixed; bottom: 0; width: 100%; } 回答1: iOS has issues with fixed positioning. When swiping to scroll, it will not update the fixed position until the tap/drag

AFNetworking Background Session Configuration for iOS 8 Extension

纵然是瞬间 提交于 2019-12-09 05:25:58
问题 I'm currently developing an iOS 8 App Extension, and am having difficulty with this one last piece. In the rest of my app, I use an AFHTTPSessionManager subclass that I instantiate like this: + (MYAPIClient *)sharedClient { static MYAPIClient *_sharedClient = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ _sharedClient = [[MYAPIClient alloc] initWithBaseURL:[NSURL URLWithString:kMYBaseURL]]; _sharedClient.requestSerializer = [[MYAPIRequestSerializer alloc] init];

Find crash logs on iOS 8 device

牧云@^-^@ 提交于 2019-12-09 05:04:26
问题 Crash logs used to be accessible through the Settings app. I can't find that in iOS 8. Where did that go? It's not gone now is it. 回答1: I found it. It moved, it's no longer inside General/Diagnostics... It's in Privacy/Diagnostics. 回答2: Start by opening up the Settings app. Navigate to Settings - Privacy - Diagnostics & usage - Diagnostics & usage Data Tap on the crash and you will see a text field with a crash log. Long press to Select All and then Copy the crash text. Paste it into