0
这里是我的情况:我正在做同步HTTP请求来收集数据,但在手之前,我想要在导航栏标题视图中放置加载视图。请求结束后,我想将titleView返回到nil。iPhone navigationBar titleView同步请求问题
[self showLoading]; //Create loading view and place in the titleView of the nav bar.
[self makeHTTPconnection]; //Creates the synchronous request
[self endLoading]; //returns the nav bar titleView back to nil.
我知道加载视图的工作原理,因为在请求结束后显示加载视图。
我的问题:在这一点上应该很明显,但基本上我想延迟 [self makeHTTPconnection]
函数,直到[self showLoading]
完成。
感谢您的时间。