xcode6

Xcode 6.1 Precompiled Headers

坚强是说给别人听的谎言 提交于 2019-12-21 08:00:06
问题 In Xcode 6.1, creating a new project does not create a precompiled header file using the single view iOS project template. If I add one manually, any definitions in the pch file are not available in any other source files. I've looked at many threads and questions and tried cleaning, re-buiding, re-starting, deleting derived data and manually removing the CACHE_ROOT/SharedPrecompileHeaders folder. All to no avail, though. Some info suggests ticking to include in targets, but this is disabled

Xcode 6.3 (and 6.2) hits breakpoint on [UIFont fontWithName: size:]

一曲冷凌霜 提交于 2019-12-21 07:59:10
问题 In My iOS Application im using a class (DKTheme) to keep my fonts and images in a centralised place. my implementation looks like this. + (instancetype)theme { static DKTheme *_theme = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ _theme = [[DKTheme alloc] init]; }); return _theme; } - (id)init { self = [super init]; if (self) { [self setupTheme]; } return self; } - (void)setupTheme { // some code here self.smallButtonFont = [UIFont fontWithName:@"Helvetica-Bold" size:13

Xcode can't update to version 6.2 [closed]

痞子三分冷 提交于 2019-12-21 07:29:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Yesterday I updated Xcode 6.1.1 to Xcode 6.2 but after update when I see about Xcode it's still showing Version 6.1.1 (6A2008a). Any idea why? Note: I already go to the App store and check it, but there is showing that it's updated and I can only open it. 回答1: Download full 2.6 GB xcode completly and remove old

Navigate to ViewController from UIAlertController button click

时光毁灭记忆、已成空白 提交于 2019-12-21 05:57:34
问题 I am quite new to Swift development and I tried referring to the Swift UIAlertController API but couldn't figure out how to navigate to another UIViewController after clicking a button on the UIAlertController. I would appreciate any pointers, help or a solution to this problem. My code snippet is given below - @IBAction func showAlert() { let alertController = UIAlertController(title: "Disclaimer", message: "Disclaimer Text Here", preferredStyle: .Alert) let declineAction = UIAlertAction

Navigate to ViewController from UIAlertController button click

微笑、不失礼 提交于 2019-12-21 05:57:09
问题 I am quite new to Swift development and I tried referring to the Swift UIAlertController API but couldn't figure out how to navigate to another UIViewController after clicking a button on the UIAlertController. I would appreciate any pointers, help or a solution to this problem. My code snippet is given below - @IBAction func showAlert() { let alertController = UIAlertController(title: "Disclaimer", message: "Disclaimer Text Here", preferredStyle: .Alert) let declineAction = UIAlertAction

Swift: 2 consecutive closures/blocks

删除回忆录丶 提交于 2019-12-21 05:22:26
问题 According to the docs here: https://www.parse.com/docs/ios_guide#files-progress/iOS this is the suggested syntax to handle file saving with a completion block and progressBlock. let str = "Working at Parse is great!" let data = str.dataUsingEncoding(NSUTF8StringEncoding) let file = PFFile(name:"resume.txt", data:data) file.saveInBackgroundWithBlock { (succeeded: Bool!, error: NSError!) -> Void in // Handle success or failure here ... }, progressBlock: { (percentDone: Int) -> Void in // Update

iCloud and Xcode 6 - Ubiquity Container

北城余情 提交于 2019-12-21 04:14:38
问题 I am currently working on an app for iOS 8 which uses iCloud Drive and the CloudKit Framework. Everything was set up by using Xcode 6. When I try to submit my App to iTunesConnect I get the following error: When I'm adding the Key in my iCloud entitlements I'm not able to Code sign the app and Xcode sends me an error,too. <key>com.apple.developer.ubiquity-container-identifiers</key> <string>de.sn0wfreeze.CloudFInder</string> I'll get that error: And I'm not able to Code sign. Can anyone

Xcode 6 localization of plurals & genders with XLIFF

懵懂的女人 提交于 2019-12-21 04:09:02
问题 In Xcode 6 the XLIFF file format is now used for localization of strings. However, I need localise plurals and genders. How can I do this in Xcode 6? As far as I understand, the XLIFF file now replaces the Localizable.strings file. In iOS 7/ OS X 10.9 we could localise plurals & genders by adding Localizable. stringsdict but this requires a Localizable.strings to exist. But since now there is no Localisable.strings file, how can I get the Localizable.stringsdict file to work? 回答1: As of Xcode

Calling Objective-C from Swift class causing linker errors

不想你离开。 提交于 2019-12-21 04:05:01
问题 I'm trying to use RFDuino Objective-C library in Swift. It all sounds simple, I have called Objective-C from Swift classes before, no problem. This time however I hit the brick wall. Created header file. Added header files to it. Swift can see the classes no problem. Project compiles fine. The problem during build appears just after I try to call any of Objective classes for example: override func viewDidLoad() { super.viewDidLoad() let rfDuinoManager: RFduinoManager = RFduinoManager

Local Notification not working since updating to IOS 8 and Xcode 6

不羁的心 提交于 2019-12-21 03:13:34
问题 Has anyone else had problems with local notifications since updating to IOS 8 and Xcode 6? I have my application which was running fine and the notification.firdate was set from date picker and working fine, notification.alertBody showed up fine. Now i've updated it doesn't work. I've added break points and my firedate has a value stored in it. Can anyone please help me? 回答1: You need to update your code to be able to receive notifications in iOS8. More info here. Objective-C code: - (BOOL