Questions tagged as 'swift2'

1
answer

Error navigating between two controllers with segues in IOS

I have two views, A and B, each with its respective driver. From view A I can go to B. And from the B I open a new controller that has no associated view, but I create it programmatically. From the new controller created I have a button th...
asked by 23.11.2016 / 12:04
1
answer

Error updating Swift 3

How about, I have a problem, my application with Xcode 7.3.1 ran perfectly, since I updated Xcode 8 my application was updated and the code was automatically converted, I got some errors but I could fix them, I run my app but when I try to open...
asked by 22.09.2016 / 05:52
4
answers

Help with json swift on ios

Greetings to Everyone I'm trying to access the values of the Result {"Result":{"CODIGO":"Error","DESCRIPCION":"true","ID":"23"}} The Controller, for now I only access the Result. class FirstViewController: UIViewController { @IBOutle...
asked by 30.04.2016 / 19:38
1
answer

Swift Project 2 without StoryBoards

I would like to create a project in Swift 2 that does not work with storyBoards since in Objective-C I am used to working with XIBs . Some time ago I was testing with Swift 1.x and I remember that to assign the VC to rootViewC...
asked by 30.12.2015 / 15:12
2
answers

Refer to a Pointer type value in Swift with Parse

I have created in parse several classes and many of them related to each other by Pointers. An example is the following. I have 2 classes: subcategorias comercios In comercios I can have records of many trades, t...
asked by 24.01.2016 / 20:16
1
answer

Authenticate user (Facebook) with Firebase

I am trying to authenticate my registered users through Facebook in Firebase. But the Firebase documentation is in objective-C and I'm working with Swift. I have already created the app from Facebook and authenticated by Facebook on the Fireb...
asked by 21.02.2016 / 06:00
2
answers

NSLayoutConstraint UIView margin

What is the correct way to make a constraint with the constant 0 and leave a space outside the view? self.view.addConstraint(NSLayoutConstraint(item: gestureView, attribute: .Leading, relatedBy: .Equal, toItem: self.view, attribute: .L...
asked by 08.06.2016 / 19:52
2
answers

Form in IOS

I'm doing an app in swift and I need to make a form like this: At the beginning I was doing it with a UITableVIew , but at the time of writing, when the keyboard was displayed, I scrolled and the field was not visible. I ha...
asked by 30.09.2016 / 07:12
2
answers

Call an AppDelegate.swift function from a .m file. Objective-c mixed with swift

I'm doing an app in swift , but I had to use a library that is only in objective-c , so I had to create a file .h and another file .m The problem is that from the file .m I have to call a function of AppDel...
asked by 29.09.2016 / 13:41
1
answer

Swift - Nodes pass from one side to another with touchesMoved if the physicsBody body is very thin

I have two SKSpriteNode the cat and the black wall, each of them have the class physicsBody associated so the cat is on top of the black wall. The cat moves it with the finger with the function touchesMoved of the followi...
asked by 02.02.2016 / 17:27