发布时间:2013-10-23 17:42:12
可以在viewDidLoad最后加入NSThread //子进程中处理请求,不然会堵塞主进程,UIActivityIndicatorView就不会出现,实际上在进程最后会出现,但看不到 [NSThread detachNewThreadSelector:@selector(getAndR.........【阅读全文】
发布时间:2013-10-16 18:30:31
在AppDelegate中声明并初始化全局变量 然后在需要使用该变量的地方插入如下的代码: //取得AppDelegate,在iOS中,AppDelegat被设计成了单例模式 AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate]; ap.........【阅读全文】