Questions tagged as 'swift3'

1
answer

instantiate class to access properties from another SWIFT class

Look, I have time looking for how to instantiate class to access properties ... I've seen everywhere that they do this ... let vc = otroViewController() vc.label.backgroundColor = UIColor.black // por ejemplo una etiqueta para cambiar su f...
asked by 09.12.2017 / 01:11
0
answers

Passing data from a table view to an Xcode view controller

I'm trying to pass data already saved in a Core Data from UITableView to a view controller . The code compiles to me without error but when I execute it does not present to me in UILabel the information that it would have to send....
asked by 05.12.2017 / 03:46
0
answers

SWIFT Scrollview in a view to select multiple horizontal images

I hope someone helps me, I have a scrollview to select an image, and as it is common to pass the selected image to the view and the others are not seen, I would like to have the collection of images in the same view and be able to select one but...
asked by 07.11.2017 / 16:55
1
answer

Link storyboard with viewcontroller without using the drag and drop

Is there a way to link a storyboard element with a variable using code, without having to use the drag and drop from the storyboard to the controller?     
asked by 07.11.2017 / 23:05
1
answer

Normal and long click on UIBarButtonItem

I try to implement a double functionality on a button of a navigation bar, for this I have implemented this code class ViewController: UIViewController { @IBOutlet weak var txtBuscar: UITextField! @IBOutlet weak var btnNuevoItem: UIBarButtonI...
asked by 19.10.2017 / 19:01
1
answer

AlertController in response to a URLSession

I try to modify the user data of an app through the connection with a web server which responds to this request with a boolean. The code implemented for the connection is fine because when checking the data, they are correctly reflected to those...
asked by 16.10.2017 / 01:06
1
answer

How to return an entity with enum

How about everyone. I'm trying to return an entity with an enum, not a tuple. Currently I have already returned exceptions but my intention is to have entities by defects, because they are few. I do this to return an exception with enum....
asked by 12.09.2017 / 19:57
1
answer

Swift3: TextField events in TableViewCell

Cordial greeting. I work in an application which has a list of elements, each item in the list is composed of a custom cell (TableViewCell) which contains 1 textfield and several labels. I try to capture the value change event of the textfield i...
asked by 11.09.2017 / 22:14
0
answers

Error when wanting to parse JSON

Hello I have a query to run my application gives me the following error and I'm not discovering that you should greatly appreciate your help !. From already thank you very much! I attach part of my code import UIKit import Alamofire extensi...
asked by 27.08.2017 / 17:18
1
answer

How to transfer a TableView from another TableView using segue?

I know how to transfer information from a TableViewController to a ViewController, but now I need to switch to another TableViewController using the function prepare(for segue: UIStoryboardSegue, sender: Any?) , plus I think you need to mo...
asked by 19.08.2017 / 05:31