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
            Asked
            
        
        
            Active
            
        
            Viewed 363 times
        
    1 Answers
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];
        Stephen Poletto
        
- 3,645
 - 24
 - 24
 
- 
                    instead of alloc can I do a full property w/ @synth and dealloc? – Toran Billups Mar 31 '11 at 22:41
 - 
                    Yep! Just as long as you're defining your own accessor/mutator (via @synthesize) and not using private API. – Stephen Poletto Mar 31 '11 at 22:43