i Create a Class A inherited from UIView Class where am creating Labels, TextFields etc programmatically and want to access them within another viewController B. I use the Property but its not working is there any way to access them not using tags or [isKindOfClass ] method. Any help will be appreciated Thanks !.
Asked
Active
Viewed 149 times
1 Answers
0
The UIView class has a property called "subviews". It is an array and it holds all the subviews of a UIView.
If you wish to access them without iterating you have to create a custom UIView class and define your subviews as properties

Lubakis
- 141
- 1
- 8
-
I have a custom Class with properties inherited from UIView Class but not accessible in a viewController ... #Lubakis – Nisar Ahmad Jul 13 '15 at 06:57