Questions tagged as 'swift4'

2
answers

IOS: Error with Google Maps, it does not load the map but the bookmarks

Google Maps does not load the map on iphone, but when I connect the iphone to the xcode and execute the project, if it loads the map correctly. This is the code: let camera = GMSCameraPosition.camera(withLatitude: -33.868, longitude: 151.20...
asked by 09.03.2018 / 17:23
1
answer

TableView reactive in swift

I was thinking about creating a UiTableView that follows the pattern MVVM (Model-View-ViewModel) to be able to make the data in the table refresh automatically when there is a change in these, be it a new element, an update or a deletion wit...
asked by 22.02.2018 / 17:25
1
answer

pass an array with swiftyJson to model using JSON with init (SWIFT 4.2)

I have a JSON where there is an array of images, I want to use SwiftyJson to bring that array ... and in the model I use an initializer - > init (json: JSON), so when iterating with: let suggestions = json["industries", "Suggestions"...
asked by 30.08.2018 / 18:34
1
answer

Return several indexes of an array in Swift 4

I would like to know how I can get several indexes within an array of strings or characters. An example: var arrayInput = ["2","+","3","(","2","-","4","(","3","*","5",")",")",] func isParentheses() { var count = 0 var arrayNumPar...
asked by 12.07.2018 / 21:19
0
answers

How can I put a callout in an annotation of the mapview swift 4

I'm trying to show a callout (a small box with the title) in the pins that I show in the mapview but trying to do it directly shows me the title below the pin shown on the map. for i in self.listaInstructor { print("CICLO DE INSTRUCTOR")...
asked by 08.12.2018 / 20:02
0
answers

count specific words in swift

Good afternoon I'm trying to tell just for example .hilarious in an arrangement but I do not get what I've tried many times but it does not work out .... I've seen and found out on the internet but nothing ... Thank you     
asked by 03.10.2018 / 01:42
1
answer

STRUCT CUSTOM JSON ARRAY?

My JSON is this: { … "episodes": { "1": [ { "id": 533072, "season": 1, "episode": 1, "nombre": "La hija del general", "firstaired": "2012-1...
asked by 03.09.2018 / 20:45
2
answers

the tableView delegate functions do not run Swift4

hi friends I am new in the beautiful world of good programming without more: I am trying to fill a tableView through its delegate functions and it happens that of these functions only executes: public func tableView(_ tableView: UITableVie...
asked by 27.06.2018 / 03:44
1
answer

Initialize array

I have a question and I do not know how to resolve it. I have this array created: var data: [(x: Double, y: Double)] Trying to use it tells me it is not initialized. You can tell me how to initialize it, I can not do it. Thanks for...
asked by 18.09.2018 / 09:02
2
answers

swift UITableView is it possible to set the header of the table and the header of the sections?

I have a table with a header and several sections (each with a header) and I would need both the header of the table and the header of the sections to be fixed ... is that possible using a UITableView? Then I leave the code of my table: fu...
asked by 19.04.2018 / 20:51