Skip to content
Guest Big Announcement

Help with NSTimer and Code Injection - theos

Featured Replies

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?

 

Solved by castix

  • Solution

NSTimer *t = [NSTimer scheduledTimerWithTimeInterval: 2.0

target: self

selector:@selector(onTick:)

userInfo: nil repeats:NO];

 

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

//Your code

}

  • Author
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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.