ios8

NSURLSession completion block not called

柔情痞子 提交于 2019-12-05 10:48:05
问题 var session = NSURLSession.sharedSession() session.dataTaskWithRequest(urlRequest, completionHandler: {(data: NSData!, response: NSURLResponse!, error: NSError!) in println(data) println(response) println(error) }) So I am making this request, and the completion block is never called. What's wrong? Also I tried a synchronous and asynchronous form of the same request with NSURLConnection and it worked perfectly. EDIT: I tried assigning a dataTask variable to the session.dataTaskWithRequest and

no software with CFbundleidentifier exists

扶醉桌前 提交于 2019-12-05 10:07:09
问题 I'm trying send my app(custom keyboard) for submit and catch this error: I created Provisioning Profiles for Project(com.michilly.SakhaKeyboard) and for Extension(com.michilly.SakhaKeyboard.Keyboard) 回答1: Make sure the following two values match: The "Bundle Identifier" value in your project's Info.plist file; The "Bundle ID" value on the iTunes Connect website at My Apps > [your app] > More tab > About This App. 回答2: The Bundle Identifider is case sensitive. For me, I have to change in the

Is there any way to use apple's Touch ID (fingerprint scanner) on iOS Simulator?

℡╲_俬逩灬. 提交于 2019-12-05 10:04:51
问题 I am working on an app which would require Touch ID Authentication, so is there any way i can use Touch ID (fingerprint scanner) in the simulator ? Also, please do share some kind of example code for using LocalAuthentication framework. 回答1: As of Xcode 7 the Simulator supports 'touchID'. Answer below contains further info. As of the latest beta (6) there is no way to simulate a fingerprint scan on the simulator. To be honest I doubt this will be included even in later betas. You will need to

'NSInvocationOperation' is unavailable in Xcode 6.1

Deadly 提交于 2019-12-05 09:32:37
My code suddenly can't be compiled in Xcode 6.1 (I'm sure it's working in Xcode 6 GM and beta version). It shows the error message: 'NSInvocationOperation' is unavailable My code is: let operation = NSInvocationOperation(target:self, selector:"backgroundRun:", object:self) Can anybody help? Thanks. As of Xcode 6.1, NSInvocation is disabled in Swift, therefore, NSInvocationOperation is disabled too. See this thread in Developer Forum Because it's not type-safe or ARC-safe. Even in Objective-C it's very very easy to shoot yourself in the foot trying to use it, especially under ARC. Use closures

Unknown class in Interface Builder file. Xcode 6 and Swift

我们两清 提交于 2019-12-05 08:59:34
问题 I started a vanilla master detail project with swift. If I add a new view controller and set the custom class, then the modules list is empty and it is not possible to choose a module. The error message "Unknown class in Interface Builder file." appears in the console if I run the code. How can I setup the storyboard to know the custom class and module? How it should be. The two classes from the template are just fine. and how it is I have to add customModule="Target_Name"

iOS 8 - AutoLayout issue - UIImageView inside UITableViewCell ignoring width constraints

不想你离开。 提交于 2019-12-05 08:11:21
I have a problem with iOS 8 autolayout . I want to have a custom UITableviewCell with a UILabel and 5 UIImageView . I want the images to be shown in landscape-mode but not in portrait mode, because then the UILabel would be squeezed to narrow. I designed the view in interface builder and added the following constraints (among others): 1. priority 1000: Label width >= 120px 2. priority 1000: ImageView[1..5] horizontal space to next one = 0px (to align them next to each other, the rightmost image view got horizontal space = 0 to content view to align them to the right side) 3. priority 999:

iOS 8 simulators not visible in XCode 7 beta

随声附和 提交于 2019-12-05 07:31:34
I'm using the XCode 7 beta that Apple released during WWDC2015, and it looks like iOS8 simulators are not there in it. I tried downloading them using the Xcode > Preferences > Downloads > Components, but it doesn't list the simulators. I have Xcode 6.3.2 also on the mac, and iOS8 simulators are visible there. Any ideas how to make it appear in Xcode 7? -Tejas The release notes of Xcode 7 beta 1 state: Simulator • Xcode 7.0 beta does not support iOS 8.4 and earlier simulator runtimes. (20699475) First, find the target file: /Applications/Xcode-beta.app/Contents/Developer/Platforms

iOS UITableViewAutomaticDimension RowHeight Poor Performance / Jumping

别等时光非礼了梦想. 提交于 2019-12-05 07:30:41
I'm building a basic table view on iOS 8. I watched the WWDC '14 video on the topic of autosizing cells and am trying to reproduce the concept, but am having some issues. On viewDidLoad: I am calling: //estimate for my cells though they may vary self.tableView.estimatedRowHeight = 300.0; self.tableView.rowHeight = UITableViewAutomaticDimension; When my view and table load up, performance is ok. When I click on a cell, the program takes me to a detail view. When I hit the back button on that view and return to the table view, that's when things start acting weird. The cells then start 'jumping'

Custom Camera View Not Working on iOS 8/Xcode 6

≡放荡痞女 提交于 2019-12-05 07:07:51
问题 So I had this code working on another app of mine to take photos on a custom camera view when I had iOS 7 on my phone and Xcode 5.1, now on iOS 8 and Xcode 6, the camera works but I can't see the live view of the camera in my leftVertical UIView. Here's my code, would appreciate any help Thanks! #import <AVFoundation/AVFoundation.h> session = [[AVCaptureSession alloc] init]; if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) [session setSessionPreset

Interstitial iAD: How to detect closing on iOS 8?

大憨熊 提交于 2019-12-05 06:55:05
问题 We show interstitial iAds between levels. Since iAds appear to require quite a bit of memory (we used to receive many memory warnings when they are shown and experienced some crashes), we do not load the new view before the interstitial has been closed (so, we first unload the game view, then we show the interstitial, then we load the game view). For this, we used the old/deprecated way of showing interstitials: allocate ADInterstitialAd and set delegate _interstitial = [[ADInterstitialAd