Questions tagged as 'swift'

2
answers

convert an object to json in swift

I am currently wanting to convert an object into swift of this class class UsuarioServer{ var username:String? var password:String? var nombreCompleto:String? var direccion:String? var edad:String? init (username: String, password: String, no...
asked by 24.06.2018 / 10:33
2
answers

what is the difference between a class and a structure

I can see that in some languages like swift there are both, however, I do not understand very well what the difference is. I am learning the language and it is very important to learn everything you have.     
asked by 23.06.2018 / 05:30
1
answer

CollectionView when declaring non-reusable cell error "Unexpectedly found while unwrapping an Optional value"

I'm implementing a function with collectionView to show me a number of cells. I have the problem that if the cell declared it as reusable "dequeueReusableCell" when doing vertical scrolling the cells that disappear when returning to sh...
asked by 12.06.2018 / 17:21
1
answer

How to receive remote notifications with Firebase

I'm trying to get notifications with firebase. I'm sending them with Cloud messaging from Firebase. Send the message but it does not appear in the notification tray. Doing tests and implementing the following method in the AppDelegate if you...
asked by 23.05.2018 / 17:03
1
answer

UITable, Section with Image Dynamically Swift

I have the following table that up to now looks like this: What you see here are the titles of the sections, with the accordion effect, what I would like to be able to put an image next to each title, to have an effect like this...
asked by 07.05.2018 / 20:33
1
answer

Tab bar items with scroll

I'm doing an app for iphone that has a tab bar controller with 4 elements, the problem is that the titles are long and there is very little space. Is there any way to make the tabs scroll so that the last element appears to scroll in the bar...
asked by 29.05.2018 / 11:55
1
answer

How to present a view with popover when pressing the button of a cell of a collectionView?

I have a view with a collectionView and it shows me several cells. Each cell has several buttons. In one of the cell buttons when pressed, I want to present another view as a 'popover'. I can not show the view, if I do it through the storyboa...
asked by 17.04.2018 / 17:40
1
answer

UIView animateWithDuration in Swift 4

I have this code in Objective-C and I want to pass it to Swift 4. Can someone tell me the simplest way? I'm starting with the language and I'm a little lost, thanks. [UIView animateWithDuration:0.25 animations:^{...
asked by 12.04.2018 / 08:14
1
answer

Remove top margin with a constraint in Top Layout

I have a Stack View in which I want to place it in the Top of a view that contains it but it leaves a small margin between the top. How can I remove this margin? I attach images     
asked by 28.03.2018 / 16:45
1
answer

IOs Swift Progress View Password Evaluation

I would need to be able to reproduce some component similar to Which has as a bar that indicates with different colors if the password is very weak, if it is safe etc, Swift Xcode any link of interest helps me, I do not even know how...
asked by 09.04.2018 / 21:27