Jump to content

Help with NSTimer and Code Injection - theos


Go to solution Solved by castix,

6 posts in this topic

Recommended Posts

Posted

somebody told me that unless I put anNSTimer to delay the injection, the app will crash. I have no idea how to do that tho

I've looked on google, and I couldn't find anything that helped me, maybe you guys could?

 

  • Solution
Posted


NSTimer *t = [NSTimer scheduledTimerWithTimeInterval: 2.0

target: self

selector:@selector(onTick:)

userInfo: nil repeats:NO];

 

-(void)onTick:(NSTimer *)timer {

//Your code

}

Posted

 

NSTimer *t = [NSTimer scheduledTimerWithTimeInterval: 2.0
target: self
selector:@selector(onTick:)
userInfo: nil repeats:NO];

-(void)onTick:(NSTimer *)timer {

//Your code
}

Thanks

Posted
NSTimer *t = [NSTimer scheduledTimerWithTimeInterval: 2.0
target: self
selector:@selector(onTick:)
userInfo: nil repeats:NO];

-(void)onTick:(NSTimer *)timer {
//Your code
}

put into .mm files ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines