I'm trying to run a function from another Class in another Class.
I want to call -(void)updateClock
from the Class SBAwayView
Ive tried [[%c(SBAwayDateView) sharedInstance] updateClock];
Ive also tried [%c(SBAwayDateView) updateClock];
but I can't get it to work. (the SpringBoard crashes and I'm in safemode)
Below is the SBAwayDateView
Class
%hook SBAwayDateView
-(void)updateClock
{
//do some stuff
//run %orig;
%orig;
}
%end
How can I run -(void)updateClock
in SBAwayView
Class below?
%hook SBAwayView
-(void)updateInterface
{
//do some stuff
//How can I run -(void)updateClock here?
//run %orig;
%orig;
}
%end
Thanks in advance.