Questions tagged as 'swift-3'

1
answer

Variable declaration with! at the end Swift 3

Why do some variable declarations in Swift3 add an exclamation point (!)? For example: var _nome: String! var _idade: Double! What does this entail? When should it be used?     
asked by 17.02.2017 / 19:33
5
answers

UITextFieldDelegate does not hide the keyboard

Good evening, comrades I'm having a little problem with UITextFieldDelegate. I intend that when the user clicks the return key (Back) the keyboard disappears for a few moments and return the textField to write something again. But the Return...
asked by 27.03.2017 / 01:40
1
answer

Doubt Encoding Utf8 Swift 3

I'm having a lot of trouble with the encoding of my application. I have an online radio in the United States and I'm trying an application for it. I get the metadata of the LastFM songs. let queryURL: String if useLastFM { queryURL...
asked by 07.07.2017 / 06:34
0
answers

Navigation between modes

In my iOS application I have an option that opens a modal, in this modal I have a list of items, clicking on one of these items I show the details of the selected item. The solution adopted today was to open the modal with the details inside...
asked by 09.05.2018 / 19:19
1
answer

How to adjust the height of a UiView in Swift 3 according to the subviews?

I have a UIView with subviews, and I need the UIView to increase or decrease according to the size of the subviews, the same idea of a layout with height wrap_content. Does anyone know how to do this in Swift 3? Thank you in advance.     
asked by 24.05.2017 / 22:46
0
answers

Best place to put dispatch in CollectionView with Firebase

I'm breaking my head with an application based on some examples from Brian Lets Build That App , tailoring your videos to my need. I'm downloading some Firebase images and updating a collectionview. What I'm having problem is not knowing the be...
asked by 02.05.2017 / 20:52
0
answers

swift 3 - How to close open page in a webview?

In a, index.html viewcontroller I'm using this code to open a local html file self.webView = WKWebView(frame: webFrame, configuration: config) self.webView?.uiDelegate = self as? WKUIDelegate self.webView?.navigationDelegate = self self.we...
asked by 18.05.2017 / 17:02
1
answer

Button to quit app

I'm developing an example app for Iphone using Xcode with Swift 3.0. I need to put a button that when clicked closes the whole application. I could not identify any event or function that does this.     
asked by 27.04.2017 / 00:44
1
answer

ViewPager on iOS with Swift 3

Hello, I'm developing an iPhone application using Swift 3 , and I'm having some questions regarding browsing between pages within a ViewController . My application for android I have a Activity using a ViewPager...
asked by 31.03.2017 / 01:34
1
answer

Converting String to date Swfit 3

Hello, I'm trying to convert a String to Date in Swift 3. But the date is always returning me two more hours. Below is my code. let dateFormatter = DateFormatter() dateFormatter.dateFormat = "dd-MM-yyyy HH:mm:ss" dateFormatter.locale =...
asked by 13.12.2017 / 12:54