Questions tagged as 'swift'

1
answer

How to receive subitems data from a plist?

Good! I am having difficulty receiving subitems data from my plist. Watch ... This is my directory.plist : IwanttoplayallthishereinthisMain.storyboard: SincethePositionandNamekeyswillbeinthefirstTableViewControllerandtheFunctionary,ImageF...
asked by 27.03.2017 / 22:16
1
answer

How to update a UIWebView to include and remove a UIActivityIndicatorView

I'm having difficulty including and finalizing the display of a UIActivityIndicatorView ("loading animation"). I've already tried using webViewDidStartLoad and webViewDidFinishLoad, respectively to start and end the animation, but I was not succ...
asked by 14.09.2016 / 19:58
2
answers

How to debug errors in Realm DB?

How can I debug this error and know its source: lib    c ++ abi.dylib: terminating with uncaught exception of type realm :: IncorrectThreadException:     
asked by 26.05.2016 / 17:40
1
answer

Alamofire 3 how to get errors if there is a service call (Swift2)

I have the following code to call the server Alamofire.request(mutableURLRequest) .responseJSON{ request, response, result in response in if let value: AnyObject = response.result.value {...
asked by 17.02.2016 / 12:00
2
answers

How to customize UITableView?

I'm populating a UITableView with data I get in a WebService JSON. This data is text that I need to format. It's coming this way: MyViewController: // // ViewController.swift // tableView // // Created by Gabriel Rod...
asked by 04.12.2015 / 01:30
2
answers

How to receive value from a variable of another Class

I have a variable in class Class1 and I want to use this variable in a function in class Class2 Screen1 has as its control the Class1 and screen2 has Class2 When calling screen2, Class2 will perform a function that has the class1 va...
asked by 10.11.2015 / 21:28
1
answer

Know which button invoked the action

I have the following problem, I have a pickView that will be the same for two actions, but these actions have to perform parameter passing, ie I need to know which button invoked the action. Would anyone know how to solve this problem? Oh, I hav...
asked by 05.10.2015 / 02:12
1
answer

Swift - Parse in HTML

I currently have a project for IOS 9 where I have a UIWebView component, I'm retrieving a webpage and submitting within this component. But my goal is to get only the first form that is presented inside the HTML, that is, I want to return onl...
asked by 16.10.2015 / 18:18
1
answer

Is it possible to execute a listener when the App is not running?

The App would have to communicate to the user, that there was a change in a value on the server, but without using Push Notification. So I thought I'd add a listener on iOS, and that when I detected the change in value, it would trigger a local...
asked by 28.05.2015 / 06:51
1
answer

Can you create a table with Swift that contains several columns?

I need to mount a multi-column table with customer purchase details, but with tableView I can only create tables with one column, how can I use the tableView or something else to create a multi-column table? Here's how I need to present the data...
asked by 16.11.2015 / 20:49