Questions tagged as 'swift3'

2
answers

Error accessing dictionary value in Swift 3

I have the following Json { [ { "id": "c200", "dia": "Lunes", "horario": "07:30/09:20", "materia": "Dibujo Tecnico (T)", "seccion": "A", "profesor" : "Ernesto...
asked by 12.09.2017 / 06:56
2
answers

Segue IOS does not work

How about, I'm new to swift 3, I'm developing an app using cocoapods, to be more specific SwipeViewController 0.1.8 library and when I want to use a segue to change my scene, I get the following error:    Terminating app due to uncaught excep...
asked by 26.07.2017 / 00:52
1
answer

problem with UITableView and moving from one view controller to another

Hello friends, the problem is this I am trying a taleView containing divisors and in those divisions different things and when one of them is touched, I would send it to another view, that is to say one second the problem is that when they are t...
asked by 22.07.2017 / 01:40
1
answer

Compare optional string with EditText swift3

Hello with all guys. I have a comparison of two attributes (string?) With their respective entered texts. The attributes are the following class Usuario: NSObject { var id:Int = Int() var idPrivilegio:Int = Int() var correo:String...
asked by 14.07.2017 / 23:38
1
answer

dynamically fill action sheet Swift 3

I am looking for a way to make a floating list (TableView inside AlertView) with data from a list of objects and that when I click on an element it gives me the reference to the selected object. For this I am using an action sheet and a for l...
asked by 01.06.2017 / 05:53
1
answer

how to get a token in oauth 2, with swift 3 ios, this code is with the twitter api

var oauthswift: OAuth2Swift? override func viewDidLoad() { super.viewDidLoad() oauthswift = OAuth2Swift( consumerKey: "VTkUsZX4Yqzlzlu6MBLdcIJoP", consumerSecret: "1TdkkuboBIJjEOZsOk7NIiFlQbLtfAf1Lbvgqp72qLfGLXDACf"...
asked by 02.05.2017 / 21:56
1
answer

Core Data and fetch with predicate variable

I make a request to one of the entities of Core Data , but to do a calculation, I have to filter the results for which they meet two conditions: That one of its attributes (bool), be true . That another of its attributes (date), i...
asked by 13.03.2017 / 13:15
1
answer

UserDefaults.standard does not work correctly with String variables

How I'm having problems with a small code .. I am trying to save a String with UserDefaults.standard private static let KEY : String = "KEY" private static let NOMBRE : String = "Usuario" let prefs = UserDefaults.standard prefs....
asked by 07.02.2017 / 18:14
1
answer

Problem with JSON login Alamofire Swift 3 iOS

I am trying to block access to the next window in my app when the server responds with a code different from 200 (ok) but I can not fulfill it. import UIKit import Alamofire class ViewController: UIViewController { @IBOutlet weak var...
asked by 27.04.2017 / 23:42
1
answer

Return of an object in Realm

I am having problems with an object that returns to me in Realm, the strange thing is that if I printo by console the object if it gives me a good impression but nevertheless if I try to access its value it tells me that it is empty. The structu...
asked by 25.01.2017 / 16:11