1

这个问题之后,我将如何创建一个提到的“ivar”?遇到同样的问题,我正在尝试解决它,以便苹果批准我的最新更新

4

1 回答 1

2

In the header file:

@interface MyClass : Superclass {
     UISearchDisplayController *mySearchDisplayController;
}

In the implementation:

mySearchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self];

And in -dealloc:

[mySearchDisplayController release];
于 2011-03-31T22:37:34.957 回答