python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Set variable (reference) from dictionary to new value
How can i change the value of a variable that is referenced in a dictionary.
func setApiItem(name: String, setTo: String) {
var refs = [
"apiKey" : self.apiKey,
"shi...
haveman
Votes: 0
Answers: 0
How to access indices of an NSDictionary, and convert that key’s value to an Int in Swift?
I’m trying to access indices of an NSDictionary, and convert that key’s value to an Int using Swift.
I’m also using an API to fetch data. The API response is what I’m using to create an initial dictio...
coder
Votes: 0
Answers: 1
Thread 1: signal SIGINT when getting a value from NSDictionary
I'm trying to get values from NSDictionary using the inbuilt get() func, but each time i use the get func the app crash, and xcode doesn’t print any message except "Thread 1: signal SIGINT"....
Ali madhoun
Votes: 0
Answers: 0
How can I specify the key and value datatype of an NSDictionary argument in swift?
I would like to define a function in swift that can be used in objective-c as well. I have a enum:
@objc public enum BookType: Int {
case novel
case magazine
func name() -&g...
LightOwlGG
Votes: 0
Answers: 1