Questions tagged as 'swift3'

1
answer

Use SWRevealViewController with TabBarController Swift 3

Good afternoon, I'm using this library to open a side menu:    link Everything works correctly, opens and closes the menu correctly, I am also using a TabBar, it is staying like this: So far so good, my query comes when for exa...
asked by 02.08.2017 / 21:02
1
answer

Swift 3 - Wait for the server result

How could I wait for the server to return a result and only then execute another function (which will use data from the server response). Something like: func A: I get response from the server: responseCode = 200, which I store in a varia...
asked by 13.07.2017 / 10:51
2
answers

click on GMSPolygon swift with Googlemaps

I have a GMSPolygon visible on the Googlemaps map. I want to click (tap) and have the console send me a message. // ##### Polígonos let polygonEspaña = GMSPolygon(path: españa) polygonEspaña.fillColor = UIColor(red : 0.25, green: 0,...
asked by 30.05.2017 / 20:39
2
answers

Show by time a sublayer, Swift 3

I would like to show for a certain time (2 seconds) a circular sublayer that is in my function pointCamera . But I can not find a way to do it, this is my code: func pointCamera(centerPoint: CGPoint) { let circlePath = UIBezierPath(...
asked by 12.03.2017 / 04:53
2
answers

Error running app on iPhone device

I have an app that I had already tried on the same device but I stopped running it for about two weeks, during that time I noticed that every time I tried to open it closed automatically and today when I run the project on the device again The f...
asked by 04.03.2017 / 20:02
2
answers

How to insert many records in Realm with Swift?

I am trying to perform a massive data insertion in Realm, but it is doing it very slowly. this is my code: let realm = try! Realm() let group = GroupRealm() group.id = 1 group.name = "test"...
asked by 09.02.2017 / 22:11
1
answer

How do you make a query that adds everything in Realm.io in Swift?

I am trying to make a query that gives me the total sum of percent associated with a id_character , here are my classes I have a class like this: class DBCharacter: Object { dynamic var id_character:String = "" override...
asked by 21.02.2017 / 20:25
1
answer

How to change the storyboard correctly?

I'm using a table view with a number of specific rows that allows changing to other screens of the project, however when I switch to another storyboard the navigation controller does not allow me to return. my code is as follows: override f...
asked by 03.02.2017 / 01:26
2
answers

Run calls to a loop service

Hello, I have the following code: for petition in petitions { DispatchQueue.main.async { EmailController.sharedInstance.sendPetitions(params: petition, completion: { self....
asked by 14.12.2016 / 11:58
1
answer

Problem recovering view saved in file

I have done the following example in which I create a button, I add a function for the touch up event and save it in file. The problem is that when you recover the button from the file, it no longer responds to the touch up. I could add it after...
asked by 12.10.2016 / 18:30