Questions tagged as 'swift4'

1
answer

UIButton custom class

I have the following custom class of a UIButton , but when I add it to a button in Xcode I can not make the changes be reflected. Does anyone know what the problem is? import UIKit class BotonBordesRedondeados: UIButton { // Only...
asked by 27.12.2018 / 03:47
1
answer

Display an alert in a TableViewCell

I want to show an alert when I press a button that is in a tableviewcell and it gives me the following error:    'NSInvalidArgumentException', reason: 'Application tried to present modal view controller on itself. Presenting controller is....
asked by 14.12.2018 / 17:27
1
answer

Have two TabBarControllers in an App on iOS

I would like to know how I could do to have two different interfaces in my APP. My idea is the following, when I started my session as Admin that shows me an interface and when I entered another interfaces as a client, I was thinking of creating...
asked by 17.10.2018 / 14:49
1
answer

I can not agree to count an arrangement in Swift

Good evening I tried to solve it but it does not give me the results, with another exercise similar to me it resulted with this code let contar = ver.filter({$0 == .buscar}).counter but this exercise did not leave me. Thanks     
asked by 31.07.2018 / 04:00
1
answer

Class to add Slider Menu - swift 4

I want to create a class that I can invoke at any time in my program to be able to bring a slider menu to screen. Create a class called MenuV that implements NSObject. This class creates a view with a blue alpha and at the same time shows a c...
asked by 15.07.2018 / 02:32
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 / 09:55
1
answer

error when passing JSON parameter

When I pass the parameter that a JSON expects, I get the error that "can not convert value type String to expected argument type JSON" (aka 'Optional Dictionary (String, Any') this is the data var params: JSON = ["token": token, "system":...
asked by 21.03.2018 / 16:36
1
answer

Problem with UIPickerView

I have a problem with 8 UIViewPickers, when moving the first UIPickerView the fifth UIPickerView is also moved without having moved it, taking the same value as the first one, if I move the second one moves the sixth one and so on, do you know h...
asked by 23.02.2018 / 20:47
0
answers

RealmSwift Dependency in pod spec

I have a project in which I used Realm, which has been installed by pruning (pod 'RealmSwift'). Now, I want to make a private pod of the product and put RealmSwift as a dependency to install when someone installs my pod. I get the followin...
asked by 21.12.2018 / 07:41
0
answers

Just create an instance of a swift view controller 4

I have a radio streaming app that navigates through different view controllers, the problem is that every time I leave the view that has the audio player and return to it, the play button if you press it again activates the audio playback, causi...
asked by 02.12.2018 / 16:08