【发布时间】:2011-05-05 23:07:36
【问题描述】:
这是我的情况:我正在发出同步 HTTP 请求以收集数据,但在此之前我想在导航栏标题视图中放置一个加载视图。请求结束后,我想将 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] 完成。
感谢您的宝贵时间。
【问题讨论】:
标签: iphone uiview synchronous navigationbar titleview