xcode7

SWIFT: Push segue is resulting in a modal segue instead

≡放荡痞女 提交于 2019-12-11 12:42:08
问题 In my storyboard, a modal segue takes the user to the Sign In screen (from the main screen). Then, I added a PUSH segue from the Sign Up screen to the next screen (Create Profile), which is embedded in a Navigation Controller (The Create Profile screen is the one with the "test" button included). The segue to the Sign Up screen works fine. However, when a user enters their credentials and clicks "Sign Up", it does take them to the correct screen, but using a modal segue vs. a push segue. I

Getting non-master branch from Cocoapods?

早过忘川 提交于 2019-12-11 12:41:25
问题 I've been using SwiftyJSON and Alamofire in a project. Recently I downloaded XCode 7 beta. Both SwiftyJSON and Alamofire have separate, non-master branches for Swift 2. Is there a way to get these via CocoaPods, or do I need to install them in the traditional way? I tried searching on the CocoaPods website to see if these branches had been submitted as separate Pods, but nothing came up. I'm wondering if there is a Podfile syntax that allows you to get a non-master branch. 回答1: You can

How to get San Francisco font into Xcode?

自闭症网瘾萝莉.ら 提交于 2019-12-11 12:25:58
问题 I just download and installed the SF fonts. I see them in Sketch and the Font Book but not Xcode (Interface Builder). I've restarted Xcode but the SF or San Francisco fonts still do not show up in the text tool. Does anyone know if something special is required to get them working in Xcode? OS X 10.11.1 Xcode 7.1.1 回答1: All you have to do is to add your (.ttf) file to resources. You can drag and drop it and then a dialogue box will appear after that check the checkbox for your application and

How to import my own class into an Xcode 7 playground?

纵饮孤独 提交于 2019-12-11 12:15:32
问题 I know this question was asked before, but I didn't find an answer in relation to Xcode 7 and Swift 2. Many answers are just ambiguous, incorrect or outdated. Is there a clear way to import a single class or a set of classes to a playground? 回答1: In the Playground go to menu View / Navigators / Show Project Navigator and copy your class files into the Sources folder. Your classes have to be marked public like this: public class MyPlayGround { public class func sayHello() { print("Hello") } }

Invalid Swift Support : SwiftSupport folder is missing error with Xcode 7

不打扰是莪最后的温柔 提交于 2019-12-11 12:09:15
问题 I am trying to upload an ipa with AdHoc distribution profile to iTunesConnect. My app is coded in Swift 2. My Xcode version is 7.0. The app gets uploaded without any errors. But after some time, I get a mail from Apple Developer on my Apple ID as follows : Dear developer, We have discovered one or more issues with your recent delivery for "TDGApp". To process your delivery, the following issues must be corrected: Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app

Xcode crashing on startup “parentPath must be nil but it is not”

二次信任 提交于 2019-12-11 12:01:34
问题 I'm having XCode (latest version) crash whenever I start up - can't get anything done until I resolve this - any ideas? Error - See below What I did prior to getting the issue had put in a new HDD (and moved the old to the optical bay) - reinstalled XCode 4 on the new SSD - all working fine I did rename my home directory user name on the "old" HDD to put "_OLD" at the end - just so I didn't get confused if jumping to the old HDD for files I tried to open a test project from this old HDD area

Landscape Launch Images on Xcode 7 madness

ε祈祈猫儿з 提交于 2019-12-11 11:57:20
问题 The application only works on landscape mode. Since iOS 9 release is imminent we're preparing our app to support the latest and greatest. So I've migrated to use .xcassets for the LaunchImages and setup all the images iPhone/iPad supporting back to iOS6. Running the app in an iPhone 6 with iOS 9 installed shows the launch image just fine, but when running the app in an iPhone 6 with iOS 8 it just shows a black screen! I've also used the UILaunchImages key in the plist and another weird this

How to show bar values on CorePlot -Stacked bar chart

梦想与她 提交于 2019-12-11 10:22:17
问题 I have used core-plot to display stacked bar chart in my application, I followed this nice tutorial to implement the stacked bar chart, now the graph looks like below. "http://www.gilthonwe.com/2012/06/09/stacked-bar-chart-coreplot-ios/" I used the below code to display the bar values while user touches them on the screen. -(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index { if (plot.isHidden == YES) { return; } static CPTMutableTextStyle *style = nil; if (!style)

Upgraded to Xcode 7.2 and my UI Tests Pass without running

淺唱寂寞╮ 提交于 2019-12-11 10:10:01
问题 I just upgraded to Xcode 7.2 and now my tests succeed without even running. As soon as it finishes building, it gives me the "Test Succeeded" message and the console shows no output. Is anyone else having this issue? UPDATE: So it looks like it's not working only on one specific device, which is an iPAD AIR 2, and the UI Test platform doesn't even install onto the device. It doesn't work on 2 separate machines both with Xcode 7.2. 回答1: The issue was resolved when I updated my device to iOS 9

Method override for the designated initializer of the superclass '-init' not found

安稳与你 提交于 2019-12-11 09:58:34
问题 I've encountered following address of Braintree in my XCode 7. Before upgrading to XCode 7, everything is working smooth. Now got that problem. Please let me know how to solve that issue. /.../Pods/Braintree/Braintree/API/Client/BTAPIResponseParser.m:9:17: Method override for the designated initializer of the superclass '-init' not found 回答1: What version of Braintree are you using? It may be that you need to update to 3.9.3, which includes xCode7 support. (https://github.com/braintree