Guest User

Untitled

a guest
May 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. - (void)addAction:(id)sender{
  2. [NSThread detachNewThreadSelector:@selector(addWait) toTarget:self withObject:nil];
  3.  
  4. testAppDelegate *appdelegate = (testAppDelegate *)[[UIApplication sharedApplication] delegate];
  5. [appdelegate addAssign];
  6.  
  7. NSInteger count = appdelegate.assignONE.count;
  8. appdelegate.isNew = YES;
  9.  
  10. AssignObject *n_assign = (AssignObject *)[appdelegate.assignONE objectAtIndex:( count - 1 )];
  11. [self inspectItem:n_assign];
  12. }
  13.  
  14. -(void)addWait{
  15. NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  16. [self.view addSubview:waitingView];
  17. [pool release];
  18. [NSThread exit];
  19. }
Add Comment
Please, Sign In to add comment