Questions tagged as 'swift'

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
1
answer

Show PDF with urlPath Swift Xcode

Currently I have a webservice which returns an array of bytes which I transform into base64 to assemble the PDF, this is saved in a route and if I go to the route I can open the pdf normally. All this I do in func saveBase64StringToPDF(base...
asked by 25.10.2018 / 16:48
1
answer

Background gradient

I have a table which has custom cells, Like the image, I have the background is gray, but my goal is that the gray is in gradients, I mean have a stronger gray from the right to the clear on the left, example image: so far I ha...
asked by 18.04.2018 / 19:18
2
answers

Parameter step of a viewController son to parent after doing a dismiss

From a parent controller I call another child ( popoverContent ) with self.present , the child driver is a typical view in the form of a popup that I end up closing with a dismiss but I want to pass some data to the parent view....
asked by 31.01.2018 / 00:10
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
2
answers

'++' is deprecated: it will be removed in Swift 3

I am migrating a class to Swift 3 and it shows me the error: '++' is deprecated: it will be removed in Swift 3. This is the code: column = column >= (numberOfColumns - 1) ? 0 : ++column The problem is in ++ column.     
asked by 07.10.2016 / 17:17
2
answers

Convert an array to json from swift

I need to convert an array of strings that I get from an xml, into a json file and then save it in a sqlite database. I have this code: do { let jsonData = try NSJSONSerialization.dataWithJSONObject(dictionaryOrArray, options: NSJSONWrit...
asked by 12.08.2016 / 11:23