English 中文(简体)
导航工具栏上的后退按钮在完成对当前视图的完整处理之前无法单击
原标题:back button on navigation toolbar not clickable until it finish complete processing of current view

i have a view which has uinavigationcontroller with back button. On viewWillAppear method i am calling a web service and bind the data in table view, it take some time to bind the data. In meantime user click back button it doesn t move to the previous view till it finish complete binding of table. how can i move to previous view till processing current view.

问题回答

在新线程中加载web服务。使用以下代码示例来指导您:

[NSThread detachNewThreadSelector:@selector(aMethod:) toTarget:self withObject:nil]

您可能正在同步加载数据。您应该考虑在后台处理web请求,然后在数据准备好后更新主步骤中的UI。(查看一个名为ASIHttpRequest的库,它可以帮助处理web请求。)





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签