Welcome to my iphone development code blog

Welcome to my iphone development code blog
"SIMPLICITY IS BEST PROFESSION"

Thursday, July 15, 2010

perform selector on main thread

some times there is a need to call some methods on main thread like reloading uitableview

here it is how to do it

[self.tableview performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:YES];

enjoy!

No comments:

Post a Comment