Posts by Andreza Cristina da Silva • 314 points
14 posts
-
4
votes1
answer432
viewsA: Open Viewcontroller iOS
Has two forms. One of them is to create a following in the storyboard, assign it an identifier and in this method call the function performSegue(withIdentifier: IDENTIFICADOR, sender: self). The…
-
2
votes3
answers330
viewsA: Array Pose in Swift
You can use if let i = nomes.index(of: "Marilia") { //Faça o que quiser aqui }
-
0
votes1
answer75
viewsA: Tableview saving selected lines
There are some options for you to do this, but an array of Bool I don’t think will help you.... I think the best way is for you to have a dictionary [Day of the Week : Bool]. In your viewDidLoad,…
-
0
votes4
answers364
viewsA: Swift 3 - How to persist objects
To store things in the memory of the device I think Coredata is great. You can shape the objects you need to store, define relationships and it’s relatively easy to search and register objects...…
-
0
votes1
answer95
viewsA: How to mount an array dynamically
Well, I guess it depends. You can put in the return [Any], that will serve to array anything. BUT I don’t know if this is what you need. From your code, it seems to me that you simply need a…
-
0
votes4
answers744
viewsA: How to validate if Textfield is empty?
I think the idea is to check, besides if the text is empty, if it is not nil... if textFiel.text != nil && !textFiel.text.isEmpty { label.text = "Por favor, digite algo" }…
-
1
votes1
answer168
viewsA: How to calculate distance travelled by me in Swift
Has a function ready to calculate the distance between two points of Cllocation: let distance = currentLocation.distance(from: initialLocation) The result is given in Cllocationdistance, which is…
-
1
votes1
answer67
viewsA: Difficulty loading sections in cellForRowAt
I think the ideal is that your employeesSearching is a two-dimensional array already organized by sections. That is, the Employee that is from Section 0 will be in employeesSearching[0][i], which is…
-
0
votes1
answer99
viewsA: Clear Context using Coredata persistence
Have you tried "reset()" or delete(item)? In delete you have to pass the item you want to clean...
-
0
votes5
answers241
viewsA: Uitextfielddelegate does not hide the keyboard
To use delegate functions you need to assign item delegate. Just make itextField.delegate = self
-
6
votes1
answer233
viewsA: Differences between tableView.dequeueReusableCell and Uitableviewcell
TheReusableCell reuses resources that are not used. That is, if you have already prompted 20 cells, but you are only showing 19, it will take the 1 that is not being used to instantiate the new cell…
-
-1
votes1
answer81
viewsA: startMonitoringSignificantLocationChanges Does not work in background
Two suggestions... I noticed that, in the code sent, you are not asking for permission to pick up the user’s location... Maybe this is a problem. To resolve this, just put in viewDidLoad:…
-
0
votes2
answers75
viewsA: How to approach the vision of its location, and make it follow along a path?
To bring the map closer to the location, change the span, as you said yourself... The lower the span value, the closer the view is. To "track" the offset, I suggest that in the locationManager(_…
-
3
votes3
answers1628
viewsA: How do I export a trial app without the apple Developer program?
You can create a developer account, but without paying 99 USD. That way you can still not publish apps in the Appstore, but you can install the app on your iPhone. For this, you plug the iPhone on…