I am using theos
and I am able to %hook to functions throughout the YouTube but I am unable to figure out how to add a UIButton to the view of the YTMainVideoPlayerOverlayView
class
This is the class I am hooking on to.
YTMainVideoPlayerOverlayView.h
I was thinking of hooking into any of these methods
- (void)setVideoButtonsForLayout:(int)arg1;
- (void)setPlayerViewLayout:(int)arg1;
- (void)layoutSubviews;
- (id)init;
I also found this, probably when using CGRectMake
- (float)topButtonsXOffset;
Can anyone give me a hint or example, (please) on how to %hook and be able to add UIButton
with a delegate please.