properties - Objective-C: use variable in children class, which is created automatically by property in parent class? -



properties - Objective-C: use variable in children class, which is created automatically by property in parent class? -

i want subclass icarousel have troubles private variables. example:

icarousel.h

@interface icarousel : uiview ... @property (nonatomic, assign, getter = isvertical) bool vertical; ... @end

icarousel.m

@implementation icarousel - (void)setup { ... _vertical = ...; ... } - (void)setvertical:(bool)vertical { if (_vertical != vertical) { _vertical = vertical; [self layoutitemviews]; } } @end

they set variable _vertical without accessing of property , avoid calling of overridden setter method.

could access same variable, not property in kid class without changing of icarousel .h , .m files?

objective-c properties private protected icarousel

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -