Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nashyo

macrumors 6502
Original poster
Oct 1, 2010
299
0
Bristol
Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for 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 a UISearchBar object. Why doesn't my UISearchBar object load the 'BarTexture' image?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.