//开一个NSThread
[NSThread detachNewThreadSelector:@selector(removeAllUselessViews) toTarget:self withObject:nil];
//执行方法
- (void)removeAllUselessViews
NSAutoreleasePool *pool =[[NSAutoreleasePool alloc] init];
//回到主线程
[self performSelectorOnMainThread:@selector(openTargetBook) withObject:nil waitUntilDone:NO];
[pool release];
}
- (void)openTargetBook
{
}
[NSThread detachNewThreadSelector:@selector(removeAllUselessViews) toTarget:self withObject:nil];
//执行方法
- (void)removeAllUselessViews
NSAutoreleasePool *pool =[[NSAutoreleasePool alloc] init];
//回到主线程
[self performSelectorOnMainThread:@selector(openTargetBook) withObject:nil waitUntilDone:NO];
[pool release];
}
- (void)openTargetBook
{
}