Questions tagged as 'swift'

2
answers

return CoreDat - Swift

I am not able to assign a textField with the result of a search when it is int, with String sure var results:NSArray = try context.executeFetchRequest(request) as! [NSManagedObject] if(results.count > 0){ var res = re...
asked by 23.10.2015 / 14:16
1
answer

Access button text

Good afternoon guys ... I have the following, I need to know the title that is in a button, as if it were .text, to set use the setTitle, but and to know what the name? Thanks     
asked by 05.10.2015 / 19:12
1
answer

UIPicker array view

People, good night ... I have the following problem: I need to insert a picker view in my application, this picker view receives the data from an array, and when the user clicks a button it triggers an action that takes the value of the pickView...
asked by 05.10.2015 / 02:59
1
answer

Embed fb in the ios swift app

Good afternoon guys, all good? I would like to know if integrating the fb sdk in my project ios swift if the user log in I have access to his friends list? And taking advantage of the question, would anyone have any tutorial on integration? Thank...
asked by 26.09.2015 / 16:05
1
answer

How to capture and handle an Exception in Swift language

I have a method of a framework , of AVFunction that throws an exception, but when I write the code that calls this function I can not figure out what exactly the exception is thrown. How do I proceed to find the possible Exceptions...
asked by 19.09.2015 / 22:23
1
answer

Factory of objects related to local persistence in Swift

In the application I'm developing using Swift, I need to have access to a locally persisted data entity, this entity will be built through a Factory based on data probably obtained through a request and return in JSON, through a process of authe...
asked by 19.09.2015 / 00:54
1
answer

Error creating class reference and concatenating methods in Swift

Good evening. I have two classes and I created an instance referencing the parent class by calling its method and it does not run and shows the following sentence: "swift expressions are not allowed at the top level" PS: I have tried ev...
asked by 14.01.2016 / 00:05
1
answer

class of mathematical functions (regression) in SWIFT

What is the class to use mathematical regression equations? And how to plot the chart?     
asked by 29.10.2015 / 18:11
1
answer

UITextField check with only number

I am creating a tableview with Cells custon via xib and UITableViewCell and I have a cell that has only one textField and I want to do a check of number of characters and numbers for this textfield but I do not know how to do that.     
asked by 20.08.2015 / 17:18
1
answer

Fatal error: unexpectedly found nil while unwrapping an Optional value

I had the following error message:    Fatal error: unexpectedly found nil while unwrapping an Optional value In the following code snippet: // Lê uma coluna do tipo String no (BANCO DE DADOS) func getString(stmt:COpaquePointer,...
asked by 24.06.2015 / 21:08