Questions tagged as 'swift'

1
answer

Date picking time from another time zone

I have a big problem, I need to store the date and time selected by the user so that I can generate the notifications at the correct time. The date and time is captured by a date picker and when I get it as String it comes in the correct way "Se...
asked by 27.09.2016 / 18:11
1
answer

How to add image to LaunchScreen.storyboard

It's been a while since I've been trying to add an image to the LaunchScreen.storyboard of an iOS app I'm developing. Text I can add and view while loading the app, but I can not see an image that I added through the "image view" component. I...
asked by 15.09.2016 / 19:37
1
answer

UIResponder Signal

Good afternoon, I made a small app with swift 2.3 Xcode 7.3.1. with the update of swift 3 and Xcode 8 began to present the error below. some help please.     
asked by 15.09.2016 / 18:21
1
answer

Add the view of a UIViewController as a subview of a UITableViewCell?

I'm trying to create a simple table, and in a cell the content should be the view of a UIViewController, which has another UITableView. But the cell goes blank, I tried several different ways. But I did not find a solution. Below my last t...
asked by 10.08.2016 / 00:39
2
answers

Why will the result of this code result in 30?

Why is the result of this code going to be 30? I am a beginner in Swift, but I have a notion of Programming Logic.     
asked by 08.08.2016 / 03:49
2
answers

Problems with prepareForSegue method passing data

I'm having a problem guys, I'm new to swift, and I have a method that takes a result from a JSON and I wanted to store it in a local variable and then pass that variable to a viewcontroller next, but the variable when step in the prepareForStack...
asked by 06.08.2016 / 17:47
1
answer

Fill object in Swift using data from a JSON return

I have a webapi that returns a list of proofs: { "Provas": [ { "Codigo": "11111111111", "Disciplina": { "Codigo": "111111", "Nome": "SOCIOLOGIA E EDUCAÇÃO" }, "Tipo": "SUB", "Correcao": "20...
asked by 20.07.2016 / 22:24
1
answer

How to make a request using alamofire and make the following lines of code wait for the response of the request?

class func findProfessions() -> [PhotoProfession] { var professions = [PhotoProfession]() let backendless = Backendless.sharedInstance() if let p = backendless.data.of(Profession.ofClass()).find() { for prof i...
asked by 16.07.2016 / 06:28
1
answer

Problems with Array conversion in Swift 3

With the update of swift3 I'm getting the following error "type 'Any' has no subscript members", I've seen lots of questions about it and tested most of them but to no avail. The code where I'm having this error is as follows: Alamofire.reque...
asked by 18.10.2016 / 18:05
1
answer

JSON Array for object swift 3

Somebody help me and guide me, I'm studying iOS development and I put a "Alamofire" library with cocoapods to consume JSON until all right, but my JSON returns like this: { "results":[ { "id":7, "descricao":"Acupuntura",...
asked by 18.10.2016 / 16:33