Questions tagged as 'swift'

1
answer

Query based on relationship, using NSPredicate on Core Data

I have a one-to-many relationship between the Pai and Filho entities, where a Pai can have any or N Filho . Using Core Data , how do I search all Filho , basing my search for a Pai . For example: I have...
asked by 07.11.2014 / 18:58
1
answer

What's the difference in leaving a variable in the protocol marked static or non-static in Swift 4?

I'm learning about protocol s now, and I saw a code snippet in Swift 4 that defines a protocol, below the snippet of code. protocol AnotherProtocol { static var someTypeProperty: Int { get set } } Note that the variable someType...
asked by 11.08.2018 / 22:11
1
answer

Open new swift 4 screen

I have a webview app, after the lauchScreen it goes to the ViewController where it loads the page, I have a class that does the check if there is a connection, and if it does not exist I would like to open a new screen warning that it is offline...
asked by 18.07.2018 / 03:04
1
answer

How do I use VMaskTextField with Swift?

How do I use VMaskTextField with Swift? self.comVM.mask="### (##) ##"     
asked by 09.01.2015 / 20:08
1
answer

How do I call a function in swift xcode

Good night, I have a function that is linked to a button, I would like to call it directly without the need of the button, what do I do? The function ... static func goToTutorialOrTo(market: Market, from viewController: UIViewController) {...
asked by 16.05.2018 / 00:30
1
answer

What is the importance of the weak and unowned in swift?

I've been studying swift for some time and now I'm looking to dig deeper into the language and IOS platform. I wanted to know more concretely what the importance is and how to use the weak and unowned correctly.     
asked by 16.08.2017 / 18:35
1
answer

Email a pdf file in Swift

Good afternoon I have a Tab Bar Item and would like it when I clicked it to trigger a UIActivityViewController that would pay for a PDF of a link ex :( link ) and I can send it as an attachment to an email.     
asked by 29.03.2017 / 21:57
1
answer

Module compiled with Swift 3.0.2 can not be imported in Swift 3.1

When creating a project and installing cocoapods and alamofire, when running it is only this error and not build in the project, even empty only by importing alamofire    Module compiled with Swift 3.0.2 can not be imported in Swift 3.1 I...
asked by 28.03.2017 / 23:30
1
answer

Swift 3 / JSON - How to capture List of objects within an object?

How do I access a list of objects within another object list? I can capture these objects quietly, but I'm having trouble capturing objects within this list. Here's my JSON: InthiscaseIwanttohaveaccesstothevaluesthatarewithin"NOTES" and "FAU...
asked by 20.02.2017 / 22:02
1
answer

Problem doing POST method in Swift

I have this body to make a POST to the backend '{"token":"xxxx", "extra_information": {"expires_in": xxxx, "refresh_token": "xxx", "user_id": "user_uuid", "token_type": "Bearer"}}' The parameters that are with "xxxx" will come fro...
asked by 08.02.2017 / 20:33