Questions tagged as 'swift'

1
answer

You are not accepting to click the annotation for the second time

I'm using an annotation customization in my mapkit project (swift 3) to show more than one annotation (pin) on the map. It is showing and you can click annotationn, but only the first time. So I can click and annotate and open it, only if I clic...
asked by 08.11.2016 / 17:53
1
answer

Swift json deserialize

Hello, I have the following code to deserialize a json: let urlFinal = URLSERVIDOR+"/Geral/consulta?idcliente=\(id)" let jsonUrl = urlFinal let session = NSURLSession.sharedSession() let shotsUrl = NSURL(string: jsonUrl...
asked by 06.11.2016 / 01:41
2
answers

Save object in a session in Swift (IOS)

I have a class and inside a subclass import Foundation import ObjectMapper class Aluno: Mappable { var ra:String! var senha:String! var nome:String! var cpf:String! var email:String! var matricula:Matricula! requi...
asked by 11.08.2016 / 02:45
1
answer

Instantiate object in swift and populate with data from a webapi

I have already researched a number of YouTube sites and videos and can not find anything about it, if anyone is willing to show me this code, thank you, because I do not just look at the Apple documentation, I would like an explanation from some...
asked by 22.09.2016 / 17:24
1
answer

Change APP icon in Runtime IOS

You can change the app's icon at run time. Because I have an APP that will be used by several clients, I would like to change the name of the APP and the icon when the client logs in. I'm currently using Swift 2.0. Thank you in advance.     
asked by 28.08.2016 / 21:10
2
answers

How to call a viewcontrolller runtime

Friends I just need to open a ViewController, and I'm giving it silly, could help. Who can help .... Thanks. . LoginViewController *tela2 = [self.storyboard instantiateViewControllerWithIdentifier:@"login"]; [self presentViewController:tela2 a...
asked by 01.08.2016 / 15:38
1
answer

Pass value from tableview to tabbar

Hello, I'm developing my first app and I have a question. I have a tableview, and I would like the indexpath.row to be visible in the 2 viewcontroller of a tabbar, to load a label. I tried to do it as below but it did not work. override...
asked by 28.07.2016 / 16:19
1
answer

Create a structure from an xml

I'm using the SWXMLHash Framework to read the XML and I need to somehow create the following structure from XML Structure to be created: Catalogo Book1 Autor = Gambardella Genre = Computer Book1 Book2 Autor = Ralls...
asked by 10.06.2016 / 20:11
1
answer

Problem trying to update object instance with Realm

I made a request on the local database and received an array with the data. Then I run the array with looping for, looking for an object with a specific id, when locating the object I try to update a property, however Realm throws the following...
asked by 29.04.2016 / 02:16
1
answer

Swift - How do I get an image from the internet and send it to an ImageView?

I have an ImageView, I want to get an image of the internet (through a link) and play ImageView on the screen. Sample image to capture:     link How do I want it to appear     
asked by 29.04.2016 / 16:50