我有一个UISearchBar。直到我搜索一次并给出结果,它才能正常工作;如果再次搜索,则选择它时将崩溃。
我有崩溃的这种方法。有任何想法吗?
[self.billingSearchPopoverController presentPopoverFromRect:[self.billingSearchBar bounds] inView:self.billingSearchBar permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
最佳答案
检查以确保您没有过早发布billingSearchPopoverController。
关于iphone - 触摸时UISearchBar崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7829722/