Questions tagged [xcode9]

This tag should only be used for questions specific to the usage and features of Xcode 9. Do not use this tag just because you are using Xcode to develop your app. General Xcode questions should use the non-version specific xcode tag. Use tags appropriate for the OS such as ios or macos.

Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. The Xcode development environment bundles the Instruments analysis tool, Simulator, and the OS frameworks in the form of tvOS SDKs, watchOS SDKs, iOS SDKs, and macOS SDKs.

1766 questions
0
votes
2 answers

Import DisplaySwitcher in my xcode9 project - not working

I've installed the pod and updated my pods just to be safe but I sill bet the "No such module 'DisplaySwitcher'" Error. I'm new to swift so this might be me being a noob but help would be appreciated. import UIKit import DisplaySwitcher class…
0
votes
0 answers

Swift 3 UICollectionViewCell Async Loading Images GIF

I am loading Gifs from GIPHY API, the thing is that Gifs are loading well BUT when I am scrolling way fast a bug occurs, it starts loading a GIF at instant T I start the scroll and reuses the cell. I want to make sure a gif can only be loaded for…
0
votes
2 answers

Swift How can i get variable from another method in same class

I'm a beginner of swift. I wrote code and one question. I want to get variable b from func A but I don't know how. How to get it. /*This is extension from FirstViewController*/ extension FirstViewController{ private func A() { let…
0
votes
1 answer

Xcode iOS password get AF 'posted' with "some" hash / type of encryption - what kind?

I'm testing an app not yet published. I have a client side register/log-in, using Alamofire to post and then retrieve and parse JSON. Unless Alamofire has "blackboxed" some type of hash, I am not aware of having coded any kind of hash anywhere,…
0
votes
1 answer

cell deselection needs double click

I am getting trouble to deselect a cell in one click. As I click the cell, the label text inside it gets highlighted, and when i deselect the cell, 1st click deselects the highlighted label text color, turning it to black and then a 2nd click is…
user3431800
  • 191
  • 2
  • 17
0
votes
1 answer

Search CoreData background thread causes EXC_BAD_ACCESS

I'm using Swift 4, iOS 11 I'm clearly trying to do something beyond my knowledge level here, but I'm hoping someone can help. I am implementing a table view search that fetches results from CoreData. The search became too slow, so I am now trying to…
Coltuxumab
  • 615
  • 5
  • 16
0
votes
1 answer

When Does the Segue Destination Call viewDidAppear?

func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { let strategyPicker=segue.destination as! StrategyViewController strategyPicker.folder=self.folder NSLog("Tried to pass \(self.folder) into \(String(describing:…
0
votes
1 answer

Xcode 9.2 upgrade results in this error: "Command /bin/sh failed with exit code 1"

After upgrading to Xcode 9.2 this error appears in all of my projects: Command /bin/sh failed with exit code 1 Error actually appears when running on a real device, but in simulator it runs normally. Anyone has a solution?
zeina reda
  • 11
  • 2
0
votes
0 answers

MKMapView Crash on XCode 9

I am using MKMapView in my project with XCode9. My app gets crashed when control comes to line @IBOutlet weak var mapView: MKMapView!. I have tried it programatically but facing the same issue. Its working on iOS 11 simulators but when I am running…
Pritam Salunkhe
  • 87
  • 1
  • 11
0
votes
1 answer

How can I go go back to my master branch without losing all previous commits?

I'm using git through Xcode. A few days ago I added a remote repository to my project. I didn't notice it then but for some reason Xcode deselected the master branch as my current branch, and for the last two days all my commits are (...) <- where?…
Bartosz Kunat
  • 1,485
  • 1
  • 23
  • 23
0
votes
2 answers

URL with added Anchor Tag Swift 4 Xcode 9

I try to add an anchor tag to local html file using this code: let myAnchor ="#G" let htmlPath = Bundle.main.path(forResource: "test", ofType: "html", inDirectory: "localWebsite", forLocalization:"") let request = URLRequest(url:…
Thomas
  • 1
  • 1
0
votes
1 answer

parsing nested Array using codable in swift 4

I am getting many random issues. Mostly like some structure is not decodable not able to understand how to define structure. Please find the code snipped var JSON =…
user2068378
  • 114
  • 7
0
votes
1 answer

'[NSObject]' is not convertible to '[AnyObject]'

I'm trying to create tableview where the arrays are being sorted and put in there respective sections. I followed this tutorial: http://www.yudiz.com/creating-tableview-with-section-indexes/ I managed to make the first one work where the tableview…
rendell
  • 917
  • 2
  • 9
  • 26
0
votes
2 answers

parsing 2D array using Codable in swift4

I need to parser two dimensional array using codable in swift 4,please let me how to do it. following is my code snipped var exclusive =…
user2068378
  • 114
  • 7
0
votes
2 answers

Actions broken in Xcode 9 project

OK, so here's the deal... I'm trying to connect even the simplest actions (the typical ctrl+drag from the UI builder to the corresponding file), the actions are created fine, but they're not working. What the UI (with a test action) looks like:…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223