(void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
[[NSThread alloc] initWithTarget:self selector:@selector(test) object:nil].start;
}(void)test {
while (true) {
NSLog(@"enter");
sleep(1);
}
}
image.png