开发者

How to create an ivar for searchDisplayController

following this question, how would I create an "ivar" as mentioned? Ran into this same issue and I'm trying to work around it so apple will approve my 开发者_运维问答latest update


In the header file:

@interface MyClass : Superclass {
     UISearchDisplayController *mySearchDisplayController;
}

In the implementation:

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

And in -dealloc:

[mySearchDisplayController release];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜