Is it possible to create a custom property using the hooked method using theos / logos?
Example:
//define my custom property @interface SBAwayController : NSObject { UIView *myCustomView; } @property (nonatomic, retain) UIView *myCustomView; @end %hook SBAwayController - (void)activate { //call original method %orig; //use my custom property if (tweakEnabled) [self.awayView addSubview:myCustomView]; } %end
I tried this as discussed above, but was not successful.
source share