Changes not showing at runtime

I am a beginner and I´m following a course.
They use a project where the labels an so on where already set.
I wanted to make some changes but when I run the app they doesn't show.

Replies

You should show the code you have written, otherwise it is nearly impossible to tell.


What you should have:


- labels defined in Interface builder (IB) by dragging a UILabel into the view controller

- IBOutlets defined in code for those labels

    @IBOutlet weak var myLabel: UILabel!


- connected the labels in IB to the IBOutlets in code


When you want to change the value, stored in a var

var newText = "The label has changed"


you update the label with a statement as:

self.myLabell.text = newText


But once again, please post your exact code.

Xcode loves to hold onto things, so those changes may not be picked up right away.


Use the 'Product' menu w/the option key pressed, choosing to 'clean build folder', then try again.


Still no joy, redo the connections for those labels in IB, also followed by an option-clean build folder.


And finally, under the assumption you are using the latest 10.2.1 Xcode, be sure you've not adopted an older project that is simply no longer compatible...you risk wasting your time trying to fit bandaids instead of learning. Always effort to work with the very latest samples you can find.

Well, I could show code but the problem is not the values.
It's when I change the position of the UITable or labels and so on.