Questions tagged as 'swift'

1
answer

What are delegates?

In iOS programming, it is common to use structures that act as delegates . One of them, for example, is UITextFieldDelegate . This class, according to the documentation , informs the implementer of important events of UITextField...
asked by 25.02.2018 / 15:19
1
answer

Transforming user input into button label

I'm trying to create a button that when pressed enables a text field that should take the user's input and change the button's label to the input, however when I tried to reproduce I just got the following result: Video Outcome My ViewContro...
asked by 19.12.2014 / 02:12
1
answer

How to test connection in swift

I have a very simple webview, and before loading the webview I want to check the connection, if it is unavailable, create a message for the user informing.     
asked by 06.01.2015 / 19:04
1
answer

Error of "unwrapping an Optional value" in login screen transition

Whenever I will make the screen pass with login and password my application to with the error below:    fatal error: unexpectedly found nil while unwrapping an Optional value       function signature specialization of Swift (_ fatalErrorMess...
asked by 26.11.2015 / 04:18
1
answer

Creating custimized authorization message

Is there any way to customize the authorization message for requestWhenInUseAuthorization and requestAlwaysAuthorization ? I know that for this to work we have to add in info.plist the information NSLocationWhenInUseUsa...
asked by 28.02.2015 / 21:06
1
answer

Do Swift App's work on an iPhone 4 with iOS 7?

Scenery: Can an iPhone 4 running iOS 7 be able to run apps developed with Swift? NOTE: I'm not referring to 4S, only 4.     
asked by 18.05.2015 / 20:34
1
answer

Attaching camera or gallery images to Swift

Good morning, I'm developing an application in Swift, but I'm new to the language and I do not know a few things, I'd like to know how I attach the images from my gallery or open the camera to take a picture. > Thank you in advance.     
asked by 04.09.2017 / 14:48
1
answer

CPF and CNPJ Validation

I've been doing research on Swift and have not seen examples that contemplates the validation of both CPF and CNPJ. So does any of your colleagues have a role that can validate them?     
asked by 01.03.2017 / 02:30
4
answers

How to work and switch multiple View Controllers via code?

Without using a button to switch between views, everything happens via code. I already have the part that validates the credentials of the user, but when they are correct I do not know how to display the second View that contains a UIWebVi...
asked by 16.12.2015 / 02:48
2
answers

Consume data Json - Webservice Swift 2 - iOS

I need to check price in buscape api (returns in json) in my app with swift 2. Could someone help me do this or point out a tutorial on how to do it? How to use buscape api: Using the BuscaPé API to obtain a list of products using the Find P...
asked by 19.01.2016 / 01:28