Questions tagged as 'swift'

1
answer

Avoid recharging a Container View when returning to the parent controller

I have a controller where I add 4 view containers that make a segue to certain storyboards, the problem is that when I come from a modal screen when returning to the parent controller and entering the viewdidAppear, also for some reason I get in...
asked by 09.03.2017 / 12:56
1
answer

How do you make a query that adds everything in Realm.io in Swift?

I am trying to make a query that gives me the total sum of percent associated with a id_character , here are my classes I have a class like this: class DBCharacter: Object { dynamic var id_character:String = "" override...
asked by 21.02.2017 / 20:25
1
answer

How to generate an event in the MKPointAnnotation in IOS with Swift?

I hope the following example can explain me better to my question. //Tengo mi mapa declarado @IBOutlet weak var map: MKMapView! //Defino mi locacion let location = CLLocationCoordinate2DMake(latitud, longitud) let span = MKCoordinateSpanMake...
asked by 15.12.2016 / 22:06
1
answer

I can not use uialertcontroller in a uicollectionviewcell

I am trying to execute an action with alert in my cell, but nothing happens @IBAction func btneliminar(sender: AnyObject) { let alert = UIAlertController(title: "Eliminar", message: "Esta a punto de eliminar una cancion", preferredStyle...
asked by 08.12.2016 / 21:36
2
answers

Detect item already accessed in Array

I am working with Xcode and I need to place in different imageView a series of images that I have in an Array, with the condition that the images that previously have already been placed in an imageView, can not go back out . The images are...
asked by 13.12.2016 / 18:24
0
answers

NavigationController configured as transparent is loaded with color from the previous view

I have a view configured with the NavigationController as transparent, however when the view is loaded, the initial color of the NavBar is loaded with the color of the NavBar of the view that precedes it. In my view 1 (previous), I have my Na...
asked by 05.11.2016 / 02:04
3
answers

Move views created dynamically

I'm doing a simple application in which different views are added dynamically (buttons, sliders, labels, etc) to a view that makes container.This already works, but the next step would be to move (drag) these views created To place them in the d...
asked by 20.09.2016 / 12:57
1
answer

Screenshot of a UITableViewCell from swift

I'm doing an app in swift , in which I need to be able to make a screenshot of a specific cell of a table from a button. I have this code: func capturarPantalla(sender: UITableViewCell) { let miDelegate = (UIApplication.shared...
asked by 08.09.2016 / 08:16
1
answer

Define edge of a uiview by sides instead of the whole. Better to see to understand the question

Is it possible to put a border-radius of a uiview only on one side in swift ?? I have this: I have selected the circular edges that I want to remove, but I do not know how to apply a border to some sides if and not...
asked by 05.09.2016 / 12:14
1
answer

Higher speed navigation according to the swift

I'm doing a pp that contains several screens and I have to navigate between them. The problem is that when navigating to some screens it takes too long for the other one to appear. How can I add more speed in transitions ??? My code: func c...
asked by 02.09.2016 / 08:28