Questions tagged as 'swift'

1
answer

CoreData AppDelegate - ERROR

I'm encountering an error creating the context variable "There was an error creating or loading the application's saved data." The error returned is in the persistentStoreCoordinator of AppDelegate.swift @IBAction func salvarButton(sender: UIB...
asked by 26.10.2015 / 12:44
0
answers

ERROR: 177: playing sound AVAudioPlayer [Swift]

I'm getting this error message when I play a sound, error has always happened the first time you play the sound, in some tests the error does not appear and in other sim .. var beep : AVAudioPlayer? override func viewDidLoad() { sup...
asked by 10.11.2015 / 20:52
0
answers

UIWebView access other than Google

My webView perfectly accesses Google, but if I try to access another page like my site or a local address, it gets the white screen. class ConectViewController: UIViewController { @IBOutlet weak var webView: UIWebView! var urlPa...
asked by 21.10.2015 / 01:49
0
answers

sending image or video via webservice

I have in my application a UIIMAGE attribute (for image) and an NSURL for the video, I need to pass one of this information via webService ... How can I do this?     
asked by 14.10.2015 / 15:58
1
answer

Variable declared in viewDidLoad is not found in Button - Swift 2

I have an array that generates a word by loading viewController , and saves a random position in the variable declared in viewDidLoad or before within the class. But inside the button does not find the variable to receive and use th...
asked by 11.10.2015 / 22:15
1
answer

How to update UITableView with two-dimensional array?

I can not update my UITableView with the data contained in Array : var linha: NSArray = [["Categoria": "Desenvolvimento para IOS", "Imagem": "swift.png"],["Categoria": "Programação orientada a objeto", "Imagem": "php.png"]] func table...
asked by 30.09.2015 / 19:17
2
answers

Label Position - Swift IOS

Good evening everyone. How do I leave the label that is reporting the current weight positioned under the progress bar cursor? To make this progress bar I'm using GradientSlider ( link ) Thanks in advance for your attention.     
asked by 05.10.2015 / 04:22
2
answers

How to retrieve the html presented in a UIWebView with swift for IOS

When my application starts the viewDidLoad method, it runs a snippet of code that accesses an X site, retrieves an HTML form and displays it in a UIWebView. My problem is this, when a link is clicked I need to intercept the return HTML to p...
asked by 19.10.2015 / 00:26
0
answers

URL request on Swift

How do I pull only the name and the poster of that page: For a project in Swift?     
asked by 29.07.2015 / 15:24
0
answers

How to get data in a web service when receiving a push notifications with application in idle state

I have an application that when I receive a push notification needs to connect to my web service to get relevant data for the user. When the application state is active or in the background it is able to make this connection, but if the appli...
asked by 21.07.2015 / 07:01