Will the app containing this warning pass App Store review?
With the code, it gets actually rendered in iPhone simulator, but how should I remove the above-mentioned warning in Xcode?
EDIT 20 September 2011:
I will post the code that removes this warning someday.
EDIT 9 October 2011:
Here is my solution, as I could not find any other better and easier solution:
UIView *extrablue = [[UIView alloc] initWithFrame:CGRectMake(250,0,80,40)];
extrablue.backgroundColor = RGBCOLOR (95,95,95);
[self.view addSubview:extrablue];
mySearchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 250, 40)];
//[mySearchBar setContentInset: UIEdgeInsetsMake(5,0,5,75)];
mySearchBar.placeholder = @"Search a term here ... ";
mySearchBar.backgroundColor = RGBCOLOR (95,95,95);
mySearchBar.delegate = self;
//[mySearchBar sizeToFit];
mySearchBar.autocorrectionType = UITextAutocorrectionTypeNo;
[mySearchBar setAutocapitalizationType:UITextAutocapitalizationTypeNone];
[self.view addSubview: mySearchBar];
UISearchBardoes not contain the propertycontentInset– this is a property ofUIScrollView. If your code is asking aUISearchBarto change itscontentInsetthen this is a coding error, and should be removed.If you need further help removing this, then some additional code would be useful.