Questions tagged as 'swift2'

1
answer

Core Data RelationShip Swift

I have the following example to understand the relationships between entities in Core Data , (brand model), I have car brands respectively and now I want to add models to these car brands for this I have registered in vieDidLoad som...
asked by 30.04.2016 / 22:14
2
answers

Use Core Data with Sprite Kit

I'm doing a game in Swift with SpriteKit, it happens that it does not give me the option to save the data with Core Data. I am doing it by saving the data in a file, but since there are a lot of data my array is like this: [String : [[Stri...
asked by 29.03.2016 / 21:51
1
answer

How can I know when the SKScene is fully loaded to make a "loading ..." screen?

The scene executes all the functions, but in old equipment (such as the 4S or 5C) the nodes are delayed for about 2 seconds (sometimes a little more or a little less) I print: print("antes") //sprites y matrixSprites son SKSpriteNode sprite...
asked by 24.06.2016 / 00:47
1
answer

Fatal error MapKit Swift 2

Hello I was trying to load a map for my application of IOs with a certain location and the appropriate zoom was following a tutorial but in my house there is an error, I attached the image of the error that appears in addition to the map code. i...
asked by 25.05.2016 / 16:59
1
answer

Java Equivalent DES encryption?

I would like to know how I can. I have a code in java byte[] key24 = [-17, 55, 99, -54, -20, -99, -79, -34, -123, -100, -118, -42, -111, -108, -62, 123, -17, 55, 99, -54, -20, -99, -79, -34]; byte[] data = [-1, -1, -1, 0, 6, 0, 34, 96]; St...
asked by 20.12.2016 / 18:11
1
answer

CommonCrypto compiled swift 2.3

Someone knows how I can use commonCrypto in swift 2.3, they will see the version that said for 2.3, but when I want to import it to my project it says that it was compiled in 3.0 and can not be used, the strange thing is that I open the project...
asked by 21.12.2016 / 18:37
1
answer

Modal window in swift

I need to make a modal window in swift . The code I have in the controller that launches the modal is this: if segue.identifier == "modal" { let vc = segue.destination as! ModalViewController vc.modalPresentationStyle = .current...
asked by 03.11.2016 / 10:25
1
answer

Truncate tail of a line in swift

I'm doing an example that shows me the tweets that there are according to the user who writes. The problem is that by putting the Nombre de usuario and followed the nombre la cuenta % I% truncates the start of nombre de usuario in...
asked by 27.09.2016 / 08:46
1
answer

Error NSAttributedString when switching to Swift 3

I have this code used to convert this type of characters: simbólica to this: simbólica . do { let encodedData = actualLabel.text!.data(using: String.Encoding.utf8)! let attributedOptions: [String: AnyObject]...
asked by 21.09.2016 / 09:45
1
answer

Ques means the 'boundary' parameter in http requests

I am developing an app in ios that sends images to a server from swift. When doing the body of the request POSt I have to indicate several times the parameter boundary . What does this parameter mean? Here is an example of my...
asked by 26.08.2016 / 14:07