Would it be possible to create a custom property in a 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've tried it as exampled above, but no success.