Questions tagged as 'swift-3'

1
answer

Reload View Controller Swift 3

Hello, I have an app and I inserted the internet connection check in viewDidAppear, I wanted to know how I can reload this screen when the user clicks RETRY on the Alert, to do the check again. override func viewDidAppear(_ animated: Bool) {...
asked by 05.04.2017 / 03:46
1
answer

Why can not I display the value in print?

I want to display in the console the value of the variable name what appears is "(lldb)", why this? @IBAction func botaoAcesse(_ sender: Any) { let cpf = self.campoCPF.text let senha = self.campoSenha.text let param = ["cpf": cpf...
asked by 09.07.2018 / 04:26
1
answer

Objective-C within Swift?

Is there any way to put Objective-C classes within Swift projects?     
asked by 02.05.2018 / 19:49
1
answer

TableView saving selected rows

class ViewController: UITableViewController { let dias = ["Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado","Domingo"] var selecionados = [Bool]() override func tableView(_ tableView: UITableV...
asked by 15.09.2017 / 21:53
1
answer

Upload website in UIWebView Swift 3

Good morning staff I can load a web page quietly into a UIWebView with the following Swift code: import UIKit class ConteudoOnlineViewController: UIViewController { @IBOutlet weak var pagina: UIWebView! override func viewDidLoad() { s...
asked by 16.08.2017 / 14:39
1
answer

How do I redeem an item from a relationship with swift?

Hello, I am trying to store a value in an item in a relationship. The relationship is "friends" and there are some attributes like "friendship". I would like to store the value of "friendship" in this variable but I am not
asked by 16.08.2017 / 23:29
2
answers

Error ObjectMapper Swift 3.2

I'm trying to upgrade my application to iOS 11, but the ObjectMapper framework is giving this error message.    Module compiled with Swift 3.1 can not be imported in Swift 3.2:   /Users/Dev/Documents/Development/Projects/TravellinkCore/Cartha...
asked by 21.08.2017 / 21:43
1
answer

Change button label with typed value [duplicate]

I have an application that when I touch the button should open the keyboard and the value that the user type need to be inserted in the button label, I do not know how to do this, someone can help, in case it would be in swift 3     
asked by 28.07.2017 / 20:06
2
answers

Swift 3 - How to make an alert appear after the screen loads?

Hello, I'm building an app that requires an alert to appear as soon as the user accesses the screen. For this I did a ViewController and linked the view that is being accessed class EducacaoController : UIViewController { override fun...
asked by 09.06.2017 / 16:32
1
answer

How do I insert a specific date into the Swift3 Calendar?

I need to insert a specific date in the Calendar, but I'm only able to add values based on the current date (maybe because when I instantiate, I give a Calendar.current). Does anyone know how to insert (day, month and year) separately?     
asked by 17.05.2017 / 16:29