xcode6.3

UITableViewAutomaticDimension not working in Xcode 6.3

筅森魡賤 提交于 2019-12-09 08:01:14
问题 I updated my Xcode to 6.3 along with Swift 1.2, and I made the transition. Everything works except dynamic row height for table view. I have those on 3 completely different table views, so it probably isn't something else influencing the bug. I set all of the table views to: tableView.rowHeight = UITableViewAutomaticDimension and all of my xib files are properly constrained. Any ideas? 回答1: I simply added UITableViewAutomaticDimension to estimatedrowforindexpath as well. You can see how it

Table view issues in swift iOS

孤人 提交于 2019-12-09 07:14:15
问题 I am trying to create a table view in which it has list of dishes with sections and when we select a row it should go to new table view which consist list of popular restaurants which serves that specific food. I have created the table view with sections, but my app crashes when I reach at end of the list view. I have added my code below with the snapshot of table view and error. @IBOutlet weak var dishtable: UITableView! @IBOutlet weak var namlbl: UILabel! var Dishes = ["POPULAR Dishes": [

How to remove one of the cocoa pods plugin from Xcode project

泪湿孤枕 提交于 2019-12-09 05:12:22
问题 anyone know how to remove one of the cocoa pods plugin from Xcode project ? For example, I have installed afnetworking and nyximagekit in my project. Now, I want to remove nyximagekit but keep afnetwoking . How to do that ? 回答1: You have to edit the Podfile ( $ emacs Podfile in terminal.app) and remove the line pod 'nyximagekit' from it. ( ctrl+x , ctrl+s to save, then ctrl-x , ctrl+c to quit emacs ) Once you did that, run pod update and it will remove nyximagekit from your project. 回答2:

Xcode 6.3.1 error: Timed out waiting to acquire lock file for module 'X' where 'X' is my framework

蓝咒 提交于 2019-12-07 04:47:13
问题 I have the following projects in my workspace: Common Security (dependent on Common ) Data (dependent on Common , Security , (and CoreData )) Api (dependent on Common , Security , Data ) MyApp (dependent on Common , Security , Data , Api ) All of the projects except MyApp are Cocoa Touch Frameworks, mostly written in Swift. Since Xcode 6.3.1 I'm unable to compile as I'm getting the following message while building my 'Api' framework: <unknown>:0: error: timed out waiting to acquire lock file

Write into Settings bundle in Swift

瘦欲@ 提交于 2019-12-06 05:59:51
I have created an app with settings bundle in it and the app configuration can be changed. Reading from Settings bundle is done. I am using below code. let defs: NSUserDefaults = NSUserDefaults.standardUserDefaults() defs.synchronize() var settingsBundle: NSString = NSBundle.mainBundle().pathForResource("Settings", ofType: "bundle")! if(settingsBundle.containsString("")){ NSLog("Could not find Settings.bundle"); return; } var settings: NSDictionary = NSDictionary(contentsOfFile: settingsBundle.stringByAppendingPathComponent("Root.plist"))! var preferences: NSArray = settings.objectForKey(

CFBundleExecutable missing or invalid

不羁的心 提交于 2019-12-05 18:55:09
Attempting to run my project in the iOS simulator, I get a launch code error '0'. Checking the console logs in CoreSimulator.log I found the .app executable "has missing or invalid CFBundleExecutable in its Info.plist" . I'm not sure how to deal with this issue. Perhaps making sure the CFBundleExecutable file is named correctly, but what exactly is it supposed to be named? 来源: https://stackoverflow.com/questions/30236300/cfbundleexecutable-missing-or-invalid

Since XCode 6.3 -> Nib could not be loaded [duplicate]

淺唱寂寞╮ 提交于 2019-12-05 18:19:26
This question already has an answer here: Xcode 6.3: Could not load NIB in bundle 4 answers I updated my XCode from 6.2 to 6.3 today. I adapted all the swift changes, but when I run the application, I get errors for every NIB I try to load that has ~ipad or ~iphone . (NIB could not be loaded) Nibs that don't have that device modifier load as usual. If I remove the ~iphone or ~ipad , the nib can be found again, but obviously thats no solution, because it's an Universal App. Same goes for every other file type, that I try to load via code e.g. storyboards. hypercrypt Seems to be related to size

Xcode 6.3 not running iOS 8.4 - update to 6.4 fails

試著忘記壹切 提交于 2019-12-05 03:56:45
I have upgraded my iOS to 8.4, then I tried to run Xcode 6.3, it asks it can't mount the device since it's running 8.4 version (".. running a version of iOS that is not supported by this version of Xcode.") When I try to upgrade Xcode to 6.4 - update fails every time with error message (try again using purchases). Any suggestions how to solve this? Delete /Applications/Xcode.app . Download Xcode 6.4 from the Apple Developer Download site. Mount the .dmg and extract Xcode.app into /Applications . Marlon Ruiz You don't need to delete /Applications/Xcode.app. Open a terminal. Copy this: xcode

Cancel Banner Notification in iOS8 Not Working

☆樱花仙子☆ 提交于 2019-12-05 02:22:08
问题 My title might not accurately depict my question, so I apologize. I have looked for a solution to creating this level of functionality but I am unable to find it. I am creating a VoIP application for iOS 8. When a user receives a call I am displaying a notification with a 12 second ringtone. While this notification is in progress if the call disconnects I want the Incoming Call notification to disappear and display a Missed Call notification immediately. This level of functionality is

How to cast AnyObject? to String in Swift 1.2

故事扮演 提交于 2019-12-04 20:50:41
Everything good until, I've downloaded the new version of Xcode 6.3 and Swift 1.2. But when I compile my app again, a lots of error came out. I've dealt with most of them but there is a specific error that I couldn't figure it out the solutions The error is "AnyObject? is not convertible to String?" Before updating Xcode this was absolutely fine : let firstName = self.currentUser["firstName"] as? String i've figured out the solution let firstName = self.currentUser?["firstName"] as? String if let firstname = firstName { // Continue } else { // Handling the error. } 来源: https://stackoverflow