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?
![No description](https://cdn.answeroverflow.com/1130142678735147098/image.png)
![No description](https://cdn.answeroverflow.com/1130142679032938567/image.png)
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?