xcode6gm

UIPopoverController, Xcode 6, IOS 8 using Swift

孤者浪人 提交于 2019-12-20 10:58:31
问题 I'm having some trouble getting a UIPopover to appear using swift. The code that is commented out works fine in Objective-C, but doesn't work using Swift. When I tap the + in my view controller I do get the "click" in my debugger, however no popover appears. class PlayerInformationTableViewController: UITableViewController, NSFetchedResultsControllerDelegate, UIPopoverControllerDelegate { @IBOutlet weak var addBarButtonItem: UIBarButtonItem! var playerInformationViewController =

How do I change the text color of UIPickerView with multiple components in Swift?

不打扰是莪最后的温柔 提交于 2019-12-18 03:55:07
问题 Below code will change the font colour of the picker view of all 3 components. However, it crash when I try to spin the wheel. I think it has to do with the didSelectRow function. Maybe the two function have to be nested somehow? Any idea? func pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? { var attributedString: NSAttributedString! if component == 0 { attributedString = NSAttributedString(string: a.text!, attributes:

How do I change the text color of UIPickerView with multiple components in Swift?

▼魔方 西西 提交于 2019-12-18 03:54:55
问题 Below code will change the font colour of the picker view of all 3 components. However, it crash when I try to spin the wheel. I think it has to do with the didSelectRow function. Maybe the two function have to be nested somehow? Any idea? func pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? { var attributedString: NSAttributedString! if component == 0 { attributedString = NSAttributedString(string: a.text!, attributes:

Swift compile error in XCode 6 GM

百般思念 提交于 2019-12-11 16:28:38
问题 I'm using a new Swift language for develop IOS application. Suddenly i got an error from my XCode. Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 CompileSwiftSources normal armv7 com.apple.xcode.tools.swift.compiler cd /Users/bobo/Desktop/MyProject/ios export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:

Your app is built with a beta version of Xcode or iOS SDK

China☆狼群 提交于 2019-12-11 14:48:53
问题 I am trying to submit my app to iTunes Connect compiled with Xcode 6.1 GM seed 2, which I believe is the public release. Base SDK is set to "Latest iOS (iOS 8.1) and deployment target is 7.0. But, when I submitted my build using Application loader it gave me this error. "Your app is built with a beta version of Xcode or iOS SDK. Only apps distributed for beta testing may be built with beta software. To submit an app for distribution on the App Store, you will need to build the app with

UIAutomation test invocation from the command line with Xcode 6

泪湿孤枕 提交于 2019-12-10 07:16:54
问题 Running UIAutomation tests from the command line seems to break often with new Xcode releases (judging by past posts). Having never used the command line scripting for this, I found this post from 2012: Automation Instrument from the Command Line. The Problem: My command returns without error, without output results and without anything logged to the system console. The simulator does not even launch! Checking some of the paths for updates (notably, the Automation trace instrument path), I

UIAutomation test invocation from the command line with Xcode 6

隐身守侯 提交于 2019-12-05 12:25:45
Running UIAutomation tests from the command line seems to break often with new Xcode releases (judging by past posts). Having never used the command line scripting for this, I found this post from 2012: Automation Instrument from the Command Line . The Problem: My command returns without error, without output results and without anything logged to the system console. The simulator does not even launch! Checking some of the paths for updates (notably, the Automation trace instrument path), I came up with this command. Note the path in the first parameter (it's different than in past Xcode

How to get code coverage in Xcode 6?

最后都变了- 提交于 2019-12-03 04:52:21
问题 My tests are XCTests and I'm using Objective-C instead of Swift. I've seen some articles that tackle the topic, but the seem focused on older versions of Xcode, for example: Visualizing Code Coverage with Xcode Code Coverage Fixed for Xcode 5.1 What would be the recommended approach to get code coverage on Xcode 6? Does Apple have something built in for code coverage, maybe via Xcode CI via OSX Server? 回答1: Take a look at frankencover.it Simple script that can be run from dev's cmd-line or CI

How to get code coverage in Xcode 6?

烈酒焚心 提交于 2019-12-02 18:05:57
My tests are XCTests and I'm using Objective-C instead of Swift. I've seen some articles that tackle the topic, but the seem focused on older versions of Xcode, for example: Visualizing Code Coverage with Xcode Code Coverage Fixed for Xcode 5.1 What would be the recommended approach to get code coverage on Xcode 6? Does Apple have something built in for code coverage, maybe via Xcode CI via OSX Server? Take a look at frankencover.it Simple script that can be run from dev's cmd-line or CI build server. Produces console output as well as a detailed report in HTML format. This can be viewed

How do I change the text color of UIPickerView with multiple components in Swift?

若如初见. 提交于 2019-11-29 03:49:45
Below code will change the font colour of the picker view of all 3 components. However, it crash when I try to spin the wheel. I think it has to do with the didSelectRow function. Maybe the two function have to be nested somehow? Any idea? func pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? { var attributedString: NSAttributedString! if component == 0 { attributedString = NSAttributedString(string: a.text!, attributes: [NSForegroundColorAttributeName : UIColor.redColor()]) } if component == 1 { attributedString =