Questions tagged as 'ios'

1
answer

How can I get the data type of a "null" nil attribute in swift 3?

func Deserialize(_ json:Dictionary<String, Any>) { for (keyName, value) in json { if let type = self.value(forKey: keyName) as? String{ print("El valor con la etiqueta es de tipo estring") }...
asked by 06.10.2017 / 17:16
1
answer

Customize cell "TableViewCell" .xib with a collectionViewCell inside

I have a class TableViewCell with your file .xib . In the cell that appears in .xib I add a collectionView inside. How can I reference or use the collectionView of this TableView cell to make use of the cells...
asked by 26.09.2017 / 11:48
1
answer

Difference between using addChildViewController or just addSubview?

I created a viewController in the storyboard. This viewController puts it inside another main one with self.view.addSubview and I show it in an x, y coordinate. All perfect but I have seen other cases where addChildViewController is also used...
asked by 29.08.2017 / 10:34
1
answer

Implement a class with a swift protocol

I am trying to implement a class that should give me the weather, I am asked for a string as a parameter and also a completion and that is exactly where I get lost on how to implement it. Try to call it using weatherDataWith to display...
asked by 25.08.2017 / 17:31
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

$ http.get does not work on IOs with IONIC

Simple as the title suggests: I have a development made in IONIC 1 where it executes correctly "$ http.get", works perfect for Android, but not for IOs, it just does not throw any errors just does not execute "$ http.get". The code portion...
asked by 23.08.2017 / 03:24
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

Create protocol from XCode for Objective-C without touching code?

I would like to know if it is possible to declare / create a protocol of a method in Objective-C by using XCode (ie without writing code)     
asked by 03.07.2017 / 20:47
1
answer

Problems With Xcode ... storyboard & ViewController

It is often happening to me that the storyBoard does not connect with the ViewController class when starting the project, this is happening more and more often, I have already deleted the file and created a new one with the class as it should be...
asked by 26.06.2017 / 20:35
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