V
V
Vadym Piatkovskyi2017-03-15 18:49:33
Swift
Vadym Piatkovskyi, 2017-03-15 18:49:33

How to access a superclass variable from under a child?

Hello,
Vpintspe friend, the essence of the question is written in the title
How can I access the parent class variable from under the child and change the value in it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadym Piatkovskyi, 2017-03-23
@Zinapp

Found the answer for the request: "sharing data between different files of classes swift"
Well, or Passing .
And about the property, you need to notice that in the tags to the question I clearly wrote swift, not objective. No reflection and kvo were needed. The question is pretty clear and the user's answer above is just misleading with:

O
one pavel, 2017-03-15
@onepavel

maybe so ? super property = false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question