Questions tagged as 'swift2'

2
answers

Problems with getting files created in Swift 2

I am saving an image in a directory but when I go to access it returns that the file does not exist and checking the route I find that part of it changes every time I access the attached route example: / Users / mac / Library / Developer / Co...
asked by 13.06.2016 / 21:58
1
answer

Add profile picture to chat with JSQMessagesViewController

I'm experimenting with JSQMessagesViewController and Firebase. I have managed to save download Firebase content and save them via chat. Until now I have had problems with the profile image. I am declaring the following two variables: var incom...
asked by 01.06.2016 / 01:10
1
answer

JSON does not enter the for Swift2

Good, I have this method that reads a JSON from a webservice and stores it in an array. func conecta(){ let myUrl = NSURL(string: "myWebService");let request = NSMutableURLRequest(URL:myUrl!); request.HTTPMethod = "POST"; // Compose a query s...
asked by 18.05.2016 / 10:04
1
answer

Convert int to byte swift 2.3

I have an int array I want to pass it to byte array, how could I do it, either for swift 2.3 or objetive-c let constant : [Int] = [0xC0, 0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xC0, 0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00]; I want to tu...
asked by 22.12.2016 / 01:04
2
answers

How to Mark or Uncheck CheckBox?

I need help with a custom checkbox. To make them I put two buttons and create two classes, one for each checkbox that gives them their form which I take from this same site, I leave the class with which I give shape to the button import UIK...
asked by 01.08.2016 / 00:33
1
answer

Create a framework in Swift for Device / Ios Simulator

Good afternoon, I have managed to generate a small example framework in swift but it only lets me run it if I deploy it in a Device, I have read that if you generate the framework with the selected simulator you could then execute that framework...
asked by 21.03.2016 / 17:55
2
answers

IOS user permissions

I'm making an app that asks for access to access the image gallery. So I have to ask the user for access. My question is: If the user the first time cancels the permissions, how can I ask them again? At the moment I have this code that...
asked by 22.11.2016 / 07:45
1
answer

Error loading a web in a webview in swift

I have a webview in which I pass a url, it usually works fine, but there are other times that I get this error: libc++abi.dylib: terminating with uncaught exception of type NSException The problem is that I do not know where the...
asked by 24.10.2016 / 12:04
2
answers

Sort array of objects in swift

I need to sort a array alphabetically in swift . I found this code: var images : [imageFile] = [] images.sort({ $0.fileID > $1.fileID }) But I do not know how I can apply it to my array My code: if let dataFro...
asked by 18.10.2016 / 10:10
3
answers

Internet connection IOS Xcode 7

Is it possible to disable the internet connection in the IOS simulator of xcode 7?     
asked by 13.06.2016 / 11:03