Questions tagged as 'swift'

1
answer

Update graph when the value changes

I have created 3 UIView , each one is a graphic that I used from the PNChart library. I show them correctly all OK. The problem comes when I want to update the value. That is, if initially the graph was in 60% and I update...
asked by 19.01.2016 / 19:22
2
answers

Scroll when the keyboard appears

I have a question about how to handle when the keyboard comes out in an iOS application. It turns out that in Spotify on the iPhone when you are going to register, you select a field and exit the keyboard. The registration button is covered....
asked by 31.05.2017 / 16:29
1
answer

Make an image to be circular in Swift

How about, I'm working with a project in Xcode and I want to know how to change the style of an image so that it shows circular.     
asked by 20.02.2017 / 22:35
1
answer

Stack's at the UIViewController of iOs

I am mixing a lot of things about the way the different controllers navigate. When I do a func present(UIViewController, animated: Bool, completion: (() -> Void)? = nil) , is there a stack in which my controllers are added? If so,...
asked by 18.11.2016 / 00:37
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
2
answers

Casting UIImagePicker from video to Data in Swift

Hi, I have a small code where I get a video of the phone's reel to code, and now I need to transform that video to the Data class so that if I can send it for a Rest service, does anyone know any way? var imagePicker = UIImagePickerCon...
asked by 09.10.2018 / 07:40
1
answer

Initialize array

I have a question and I do not know how to resolve it. I have this array created: var data: [(x: Double, y: Double)] Trying to use it tells me it is not initialized. You can tell me how to initialize it, I can not do it. Thanks for...
asked by 18.09.2018 / 09:02
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

How to know the status of an UIButton from another view?

I have a view where the status of a UIButton is changed from true to false several times in several code parts. In another view I have to implement a method that according to the UIButton state of this other view does one thing or another. Is it...
asked by 09.07.2018 / 20:03
3
answers

how to randomize an array of strings?

I have an array and I want to randomize this array so that every time I start the app the elements are in a different position, how can I do this? I have found different extensions on the internet, and some work, but when doing it random, they r...
asked by 23.08.2018 / 05:19