Setting UISearchBar Appearance in AppDelegate Not Working


code:
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions  {      self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]];      // override point customization after application launch.      self.viewcontroller = [[searchviewcontroller alloc] initwithnibname:@"searchviewcontroller" bundle:nil];      self.window.rootviewcontroller = self.viewcontroller;      [self.window makekeyandvisible];      return yes;            uiimage *barimage = [uiimage imagenamed:@"bartexture"];      [[uisearchbar appearance] setbackgroundimage:barimage];  }
my rootviewcontroller has uisearchbar object. why doesn't uisearchbar object load 'bartexture' image?
 

what understanding of how return works in terms of execution flow?
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Rogue - the old text based game. I can't find it!

RAID in Early 2009 Mac Pro

NBC Releases Summer Olympics iOS Apps, Offering Livestreaming of All 302 Events