Questions tagged as 'swift'

1
answer

Change image of Pins in Swift (MapView)

I have an App where I send to place locations with their respective Annotations . I managed to change the image of the pin, but I see that all the images are changed. What I would like to do is show a different image for each group of locati...
asked by 29.05.2017 / 19:29
1
answer

Could not insert new outlet connection

I am learning how to program in ios and I'm following some manuals . I'm trying to connect a label put in storyboard with the code, for that I open the AssistantEditor and with the secondary mouse I drag to the area of the code...
asked by 27.10.2016 / 12:42
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
1
answer

Validate email and phone number in swift

How can I validate in 2 textfield if the data you are entering are: An email and a phone number ?? I have this code: campoMovil.keyboardType = .numberPad campoEmail.keyboardType = .emailAddress     
asked by 25.11.2016 / 08:26
2
answers

Open Url with UIImage

Use an image to open url, some do not have your url and I want you to show a message that you do not have it but I do not know how to do it     
asked by 16.08.2016 / 20:22
1
answer

Error parsing a Json

When I parse a Json downloaded from here I get the following error:    Error: Error Domain = NSCocoaErrorDomain Code = 3840 "Unterminated string   around character 6464. "UserInfo = {NSDebugDescription = Unterminated   string around charact...
asked by 18.08.2016 / 01:54
1
answer

How to return to the previous uinavigationcontroller

I would like to know if there is a way to go back to the previous UINavigationController so that I do not have to re-instantiate it, this is because I want to pass a variable to the previous view controller and then go to it without nee...
asked by 14.03.2016 / 11:23
1
answer

Swift framework

Good, a few months ago I had started to learn Swift, but since I did not understand where the NSString classes came from, NSArray, for example, I stopped learning. Nowhere did I find the answer to my doubt, that's why I come here to ask them and...
asked by 18.03.2016 / 20:08