Questions tagged as 'swift'

1
answer

Load webView after clicking enable on SWIFT 3

I have a webview that captures the device token using the firebase library and then sends it to my url via get. Until then, I was able to get the token, and I can send it to the url and in the back end I already enter the database, td quietly, t...
asked by 25.01.2017 / 15:04
2
answers

Swift - Add Show Password button

I have a text field, I have already included an image on the right side, clicking on this would like to reveal the password, however, I am not able to reach this result. The current code is: import UIKit class LoginViewController: UIViewContr...
asked by 27.09.2015 / 22:08
1
answer

UICollectionView in 2 columns

Friends, I have a IUCollectionView that is presenting the data in 3 columns, how could I do to only show 2 with a centralized image?     
asked by 16.02.2017 / 21:46
1
answer

How to assemble a dictionary from two arrays, one from keys and another from swift values

I have two arrays containing information about blocks and players. I need to put in a tableview this data, being that the sections of the table would be the blocks and the values, of each section, would be the players. Sections can...
asked by 02.11.2016 / 16:55
2
answers

Pick up user location

class ViewController: UIViewController { var locationManager = CLLocationManager() @IBOutlet weak var meuMapa: MKMapView! override func viewDidLoad() { // Ask for Authorisation from the User. self.locationManager.requestAlwaysAuthorizat...
asked by 26.09.2016 / 02:28
1
answer

Request Post in webservice with swift

I'm now starting to use alamofire, I was able to quietly make requests .get however I crashed the post request. I created a user class that has name, email and password, however I can not post a user stay object let usuario = Usuario()...
asked by 02.08.2016 / 23:49
1
answer

Swift - How to stop an animation?

In my initial Viewcontroler I have a slide that is loading from the internet and alternating on the screen images at a time stipulated by me. How can I stop the animation? I wanted to do this before going to another ViewController Animatio...
asked by 09.05.2016 / 19:03
2
answers

Maximum limit of a text box - Swift

Good Night, I have a text box created, how do I set a maximum of characters that can be written to it? (it has to accept any type of character)     
asked by 30.05.2016 / 04:30
1
answer

How to add text at specific position in Strings Array

Scenario: I have a webservice that I use to get texts, these texts can be modified by a web interface, but the title of them will always be fixed, so it was decided to insert them directly into the mobile application. What I'm currently...
asked by 12.04.2016 / 14:36
1
answer

UITableViewController with Swift and JSON Displaying repeated values

I'm having trouble popularizing my UITableView with JSON . I separated some pictures to show the problem. Note that in the first% w_ of% repeated values appear and in the next shows the same value. First Table : SecondTable:...
asked by 13.04.2016 / 22:42