How to implement like JAVA ‘Protect’ function in Object-C?I wanna access father class method in subclass,but i don`t konw how to implement it use Ojbect-C.
Asked
Active
Viewed 98 times
2 Answers
1
You have the answer of your question here:
What is the Objective-C equivalent of a public get/protected set property in C#
Or here:
Objective-C - Private vs Protected vs Public
I hope it helps!

Community
- 1
- 1

Antonio MG
- 20,382
- 3
- 43
- 62
0
You can just call
[super myMethod];
to access the parent method

Amit Shah
- 4,176
- 2
- 22
- 26
-
But I only can access public method use that. I want access parent method that can`t be access by other method. – Leonardo zhang Mar 08 '12 at 09:40
-
You need to be clearer, I don't understand what you are trying to access – Amit Shah Mar 08 '12 at 11:01