Questions tagged as 'swift2'

1
answer

TableView and its dataSource

Just trying to make a simple app, I could not do something which I do not understand because I could not ... Having the following user interface: and the following files: Well, what I try to do is that each tableView in my...
asked by 25.03.2016 / 00:43
2
answers

Retrieve position within a CollectionView

I am developing in IOS and I am a first-timer. The idea is that when I started the program I made a collection View of buttons in the following way: @IBOutlet weak var collectionView: UICollectionView! let taille = 45 override func...
asked by 30.01.2018 / 16:24
1
answer

Error in swift NSAttributedString

I have migrated to Swift 4 but I have the following error that I can not solve:    Cannont convert value of type '[String: AnyObject]' to expected aegument type '[NSAttributedString.DocumentReadingOptionKey: Any]' let encodedData =...
asked by 22.12.2017 / 10:20
2
answers

Block the user's interaction momentarily swift

I need that when I click on an option in a side menu, the user's interaction is disabled until the view is loaded. If you do not block it, the view is loaded as many times as clicks have been made on the menu. I've tried this: UIApplicat...
asked by 18.10.2016 / 11:19
1
answer

Switch from one textField to another TextField when giving it to continue on the IOS keyboard

How can I go from textfield to other textfield by hitting the continue button on the keyboard of ios ?? I've tried with @IBAction but it only works for me if I change manually from textfield     
asked by 03.10.2016 / 11:04
1
answer

xcode two view_controller move between them

Good I'm doing the test of having two view_controller one called Main and another view_2 , in each one there is a button and that serves as a navigation between them, but I fail to return. In the first view controller...
asked by 05.07.2016 / 23:45
2
answers

RelativeLayout in IOS

I have an Android app and I need to do it in IOS. In the app there are screens with long forms that occupy much more than the length of the screen, which I do in an xml layout, all with code, using relative layout. Is there any way in IOS to...
asked by 28.06.2016 / 11:34
2
answers

call to URL from Swift

Good morning. Following the development of an app connected to a relay board through the network I have encountered a problem. I have a board connected to a network with an ip: 192.168.0.190 to activate or deactivate the relays simply I ha...
asked by 05.10.2016 / 17:08
1
answer

Download and save image in swift 2 [closed]

I have a web service where is a photo and I need to download it to my device, save it and also create a folder where you should save the image from swift 2. How can I do it? How do I do it? Thank you.     
asked by 13.06.2016 / 15:34
1
answer

The file is deleted when changing the driver

I have an app where I save a file in a method called send image and there is a save and if I verify the existence of the file it returns true and everything is fine, but then according to some criteria another method must be fired in this method...
asked by 13.06.2016 / 18:55