Custom Label and OOP
I added a photo as an example of "how we can initialize and assign properties"
so I wonder If can do the same thing for Labels to assign their value by myself?
4 Replies
Can you rephrase this question, please? I don't understand what you are trying to accomplish
in first photo properties declared and initializied by init method. In the second one I assign some attributes to label so; as in the first photo can ı do something like var customLabel : UILabel and then initialite it with directly init() methos like in the musician class
UIKit in 2023 ?
Yes? No?