在this问题之后,我该如何创建前面提到的"ivar“呢?遇到了同样的问题,我正在尝试解决它,这样苹果就会批准我的最新更新
发布于 2011-04-01 06:37:35
在头文件中:
@interface MyClass : Superclass {
UISearchDisplayController *mySearchDisplayController;
}在实现中:
mySearchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self];在-dealloc中:
[mySearchDisplayController release];https://stackoverflow.com/questions/5507126
复制相似问题