Questions tagged as 'swift2'

1
answer

ByteBuffer wrap () equivalent in swift

Someone knows what is the equivalent of this java code in swift 2.3 ByteBuffer tmpCounter = ByteBuffer.wrap(byteCounter); System.out.println(tmpCounter.getLong());     
asked by 26.12.2016 / 22:59
1
answer

Problem recovering view saved in file

I have done the following example in which I create a button, I add a function for the touch up event and save it in file. The problem is that when you recover the button from the file, it no longer responds to the touch up. I could add it after...
asked by 12.10.2016 / 18:30
3
answers

Move views created dynamically

I'm doing a simple application in which different views are added dynamically (buttons, sliders, labels, etc) to a view that makes container.This already works, but the next step would be to move (drag) these views created To place them in the d...
asked by 20.09.2016 / 12:57
1
answer

Screenshot of a UITableViewCell from swift

I'm doing an app in swift , in which I need to be able to make a screenshot of a specific cell of a table from a button. I have this code: func capturarPantalla(sender: UITableViewCell) { let miDelegate = (UIApplication.shared...
asked by 08.09.2016 / 08:16
1
answer

Define edge of a uiview by sides instead of the whole. Better to see to understand the question

Is it possible to put a border-radius of a uiview only on one side in swift ?? I have this: I have selected the circular edges that I want to remove, but I do not know how to apply a border to some sides if and not...
asked by 05.09.2016 / 12:14
1
answer

Higher speed navigation according to the swift

I'm doing a pp that contains several screens and I have to navigate between them. The problem is that when navigating to some screens it takes too long for the other one to appear. How can I add more speed in transitions ??? My code: func c...
asked by 02.09.2016 / 08:28
2
answers

Error with ImagePicker in swift 3

I'm trying to get an image of the camera or the library. I can take the image, the problem is that it does not save it. I have set print test but I also do not get the delegated function to save the image. var imagePicker = UIImagePi...
asked by 04.10.2016 / 13:30
2
answers

Transition between UITableViews overlays information from both views

I'm working with UITableView s embedded in a NavController . It happens that when I make the transition from one view to another gives the impression that merges the information of both views for a few milliseconds. I leave a vid...
asked by 14.08.2016 / 06:52
1
answer

Like when dispatch_async ends in swift

I'm trying to get several files in Json format with library Alamofire , and then these json I have to save them in a database sqlite in String . The problem is that I made the insertion in the database before obtaini...
asked by 11.08.2016 / 13:40
1
answer

How to go from a C view to an A view with the navigation back button

I have a navigation controller in the storyboard and I noticed that this has the option to add a navigation bar and has a button to go to the previous view (back) according to the order, it is possible that when pressed it can take to another vi...
asked by 09.08.2016 / 09:37