Questions tagged as 'swift2'

1
answer

Error in NSDateFormatter

I have a small error in NSDateFormatter() . When I start the application, it loads it and shows me the date, but when I change the month and go through the function again, it gives me an error. func supplementaryView(shouldDisplayOnDayVi...
asked by 14.02.2016 / 12:45
0
answers

Fill blank space of the circle in CVCalendar

I have a question, I used the CVCalendar library and the days that have events are marked with a blue circle around it. What I want is to fill that circle and not leave it blank. I leave an Image of what I need to get. In number 5 is how I need...
asked by 11.02.2016 / 18:59
1
answer

Get the day of the week from a date taken from sqlite swift

I'm doing a function in swift that you formatted me on a date I get from the database sqlite and display it with the following format: Miércoles, 07 de septiembre de 2016 a las 10:03:56 . I have almost everything, I just n...
asked by 07.09.2016 / 10:35
2
answers

preferences management in IOs with SWIFT

Good morning, I'm starting with swift , and I have a question about how to manage preferences. In android , when I deal with them, if the user has not modified it, I have one by default: String correo = prefs.getString("email", "por_defec...
asked by 05.10.2016 / 12:10
1
answer

Very large compiled file

I have a fairly simple app developed in swift. When I generate the file to upload itunesconnect it generates a file of 104MB. Other app in ObjC climbs occupied about 4 or 5 MB. To generate the file I first make a Product-> Clean and then a Produ...
asked by 20.04.2016 / 20:58
1
answer

Subtract dates in swift

I need to subtract two dates and get the number of days that pass from one to another. I have this code in which I get the fields of the date, so I can put it in any format: let arrayFechaDesde = AppDelegate().explode(caracter: " ", cadena:...
asked by 09.11.2016 / 10:33
1
answer

Display phases in iOs (Constraints)

I wanted to know if someone can explain to me the methods of UIView about how the constraints are updated, of the phase of layout of the UIView , and the one on the display . My question is about what order and how t...
asked by 11.06.2016 / 14:00
1
answer

UIImageView circular in UITableViewCell

I'm trying to put a UIImageview Circular in a UITableViewCell and I'm not having much success: (. In my TableViewCell class class ComentariosTVCell: UITableViewCell { @IBOutlet weak var photoUser: UIImageView! //weak var photoUser: UIIma...
asked by 04.06.2016 / 02:35
1
answer

Initializers in Swift 2

Could someone explain to me in a simple and clear way the difference between designated initializers and convenience initializers? If possible, with some basic example to understand it     
asked by 08.06.2016 / 18:13
3
answers

Ternary operators in swift

Is it possible to do operadores ternarios in swift ? I have this type of code that I repeat many times, and I wanted to know if I can simplify it using operadores ternarios . condicion ? resultadoTrue : resultadoFalse...
asked by 17.11.2016 / 14:18