Questions tagged as 'swift'

3
answers

Is there a way to export an app for testing without the apple developer program?

I'm completing an app in swift 2 IOS and would like to know if there's a way to export and install on an iphone without having the apple developer program, as it can be done on android.     
asked by 14.10.2016 / 23:14
1
answer

How to integrate Objective-C and Swift?

I'm doing a project in Swift and would like to use some files in Objective-C. Is it possible to do this? In case I installed using Cocoa Pods , I do not know if that influences anything.     
asked by 16.01.2015 / 19:09
1
answer

println on Swift through the terminal

I'm trying to compile a people.swift class with Terminal of MacOSX class People { let name:String = "" let age:Int = 0 init(name:String, age:Int) { self.name = name self.age = age } let a...
asked by 06.06.2014 / 21:53
3
answers

Fields Validation in Swift

How to validate fields using Swift? I wanted to do with Exception, but I just searched and found that Swift has no Exceptions ... I would like something like this: void onCadastrar(dados){ try { validarNome(dados.nome)...
asked by 20.03.2015 / 13:25
1
answer

Do you need a MacOS computer to program Swift 4 and ObjC?

I'm doing a lot of research on iOS platform application programming, and all the online courses that I find on the computers are from the Apple line. To program Apple, do I need an Apple computer?     
asked by 01.08.2018 / 21:39
1
answer

Label if self adjust with swift text size?

I have a label inside a scrollView, and this label gets a N texts, some are small and others great so the idea was to put in scrollView, plus the problem is that I can not adjust the label to increase as the text , it cuts the rest of the line....
asked by 24.09.2015 / 00:16
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
2
answers

Background thread when the app is closed

How do I run a Thread with the application closed? That is, so that when the user turns on the device it starts without it having to enter the application.     
asked by 16.06.2015 / 16:48
1
answer

Error Can not invoke initialize for type "CLLocationCordinate2D" with an argument of type "latitude: String"

I'm developing an app that captures the user's location with Core Location and saves it to a file. Now I have a mapview and I need to display this location on the map (this location comes from the file). I'm using this code: override f...
asked by 25.09.2015 / 03:14
1
answer

Execute a method with the application closed "Service"

In Android it is possible to send notifications, make queries via http, execute methods, all through a Service without the user having to run the application, just because the service is active, everything happens naturally. I see that in iOS th...
asked by 17.06.2015 / 16:42