Questions tagged as 'swift'

1
answer

error when passing JSON parameter

When I pass the parameter that a JSON expects, I get the error that "can not convert value type String to expected argument type JSON" (aka 'Optional Dictionary (String, Any') this is the data var params: JSON = ["token": token, "system":...
asked by 21.03.2018 / 17:36
1
answer

Problem with UIPickerView

I have a problem with 8 UIViewPickers, when moving the first UIPickerView the fifth UIPickerView is also moved without having moved it, taking the same value as the first one, if I move the second one moves the sixth one and so on, do you know h...
asked by 23.02.2018 / 21:47
1
answer

I can not link UIButton with IBOutlet or IBActins do not work, Object Exit by default !!

When trying to insert a UIButton in a ViewController, the properties window of the object appears in the default Connection attribute "Action" and in Object "Exit" I created the function but it did not create the connection, besides I can not...
asked by 23.02.2018 / 10:28
1
answer

UITextField Swift Show error FloatLabelTextField

I'm using the class I take out of GitHub FloatLabelTextField    link Which has the effect of raising the placeholder as a title What I need is to be able to show a detail of error when validating, I would like to put it down...
asked by 11.05.2018 / 19:59
1
answer

Parameter step with Target - Action

I have a button to which I have added a Target so that when it is clicked I call a function. I need to pass through the target an extra parameter that is not the button but I throw error when trying to compile If I just pass the button it let...
asked by 09.02.2018 / 13:57
1
answer

Compare the data of a matrix with a character

I'm starting to program in java, novice in this language, I'm doing a cinema seating assignment program, which I'm doing with a matrix of dimension 6, but when comparing the matrices with a character it performs well but I enter || (or) to compa...
asked by 09.02.2018 / 16:27
2
answers

Retrieve position within a CollectionView

I am developing in IOS and I am a first-timer. The idea is that when I started the program I made a collection View of buttons in the following way: @IBOutlet weak var collectionView: UICollectionView! let taille = 45 override func...
asked by 30.01.2018 / 16:24
1
answer

Error in swift NSAttributedString

I have migrated to Swift 4 but I have the following error that I can not solve:    Cannont convert value of type '[String: AnyObject]' to expected aegument type '[NSAttributedString.DocumentReadingOptionKey: Any]' let encodedData =...
asked by 22.12.2017 / 10:20
1
answer

How do I solve this error when running my first app on iPhone?

I get this error when wanting to simulate my program on my iPhone 6s. error: Task failed with exit 1 signal 0 But on the contrary when using a simulator I do not get any errors.     
asked by 21.02.2018 / 17:05
1
answer

Error sqlite FMDB in swift - Unknown error calling sqlite3_step (5: database is locked)

I have the following code: func downloadImagen() { print("Download Imagen") getOrders() { result, error in if error != nil { print("ERROR: \(error!)") } else { let imagenFondoBbDd: String...
asked by 25.01.2018 / 10:00