防止按钮重复点击

[NSObject  cancelPreviousPerformRequestsWithTarget:self selector:@selector(ReloadLocalDataTable:) object:CurrentLocalPath];
LocalTextField.text=@"";
NSString *lastpath = [CurrentLocalPath stringByDeletingLastPathComponent];
self.CurrentLocalPath=[NSString stringWithFormat:@"%@",lastpath];
[self performSelector:@selector(ReloadLocalDataTable:) withObject:CurrentLocalPath afterDelay:.5];

  

posted @ 2012-09-14 09:36  ValeTu  阅读(182)  评论(0编辑  收藏  举报