Posts by Victor Cechinel • 61 points
9 posts
-
0
votes1
answer65
viewsA: How to filter an array in Swift similar to like?
You can use the filter array to do this. Follow example: import Foundation let castArray = ["Vivien", "Marlon", "Kim", "Karl"] let filtered = castArray.filter { $0.containsString("ar") }…
-
0
votes1
answer192
viewsA: Automatic deploy of Android and Ios apps
Take a look at Fastlane, with it you can make the Continuous delivery of your projects, it is very useful, especially if you have several collaborators in the team... https://fastlane.tools/…
-
0
votes4
answers364
viewsA: Swift 3 - How to persist objects
You can use Realm to persist this data in the database, it is simple and easy to use. https://www.raywenderlich.com/112544/realm-tutorial-getting-started Then to serialize and deserialize this…
-
1
votes1
answer53
viewsA: Create custom map using corelocation
You can use the MapKit, https://www.raywenderlich.com/90971/introduction-mapkit-swift-tutorial Will use apple’s native map, if you don’t want to use this you can use the MapBox,…
-
0
votes1
answer70
viewsA: How to convert XML to Swift objects?
You need to implement the NSXMLParserDelegate: Declare two global variables var xmlParser: NSXMLParser! var currentContentElement: NSMutableString! Then in the method that receives the answer of the…
-
1
votes4
answers744
viewsA: How to validate if Textfield is empty?
I suggest you use the guard let, force ! is not a good practice. guard let text = textField.text, !text.isEmpty else { return }
-
0
votes1
answer494
viewsA: Database created with Core Data on Swift
So both Realm and Coredata create a file in the App directory: ~/Library/Developer/CoreSimulator/Devices/[DeviceID]/data/Containers/Data/Application/[AppID]/Documents/ In this directory you can have…
-
0
votes2
answers75
viewsA: How to approach the vision of its location, and make it follow along a path?
Hello, try to perform the test on a device, I believe that with the simulator you will not be able to perform these tests. You don’t need to create a Timer to update the location, the…
-
1
votes1
answer103
viewsA: Swift json deserialize
Try to use: public class func serializeJSON(dictionary: NSDictionary) -> NSData? { var data: NSData? = nil do { data = try NSJSONSerialization.dataWithJSONObject(dictionary, options:…