I'm working in xcode
version 6.1. I've just drag and drop the UISearchBar
in my UIViewController
...Now i just copied and paste this storyboard
for iPad device..But for the iPhone device i can see the cancel button,,but for the Ipad device the cancel button didn't appear..
Below is the code
[searchBar setPlaceholder:AMLocalizedString(@"Search people", nil)];
id barButtonAppearanceInSearchBar = [UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], nil];
[barButtonAppearanceInSearchBar setTitle:AMLocalizedString(@"Cancel",nil)];
Can anyone help me!!!!!