摘要: 这个问题的实质应该是在非主线程中 直接修改 界面。如果把alertView 发在主线程调用就ok了。==============非主线程[self performSelectorOnMainThread:@selector(onResp*****eInMainThread) withObject:nil waitUntilDone:YES];============= 主线程-(void)onResp*****eInMainThread{[waitingBackView removeFromSuperview];UIAlertView *alert = [[UIAlertView alloc] 阅读全文
posted @ 2012-06-05 17:26 worldworld 阅读(1796) 评论(1) 推荐(1)
摘要: static RootViewController *sharedRootController = nil;+(RootViewController *) sharedController{@synchronized(self){if (sharedRootController == nil) {sharedRootController = [[[self alloc] init] autorelease];}}return singleController;}+(id) allocWithZone:(NSZone *)zone{@synchronized(self){if (sharedRo 阅读全文
posted @ 2012-06-05 17:25 worldworld 阅读(159) 评论(0) 推荐(0)