I have the following code to change the color of my status bar and it is working fine.
statusBarTintView = [[UIView alloc] initWithFrame:[[UIApplication sharedApplication] statusBarFrame]];
statusBarTintView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
statusBarTintView.backgroundColor = [[Color sharedInstance] navigationBarColor];
[self.window addSubview:statusBarTintView];
[statusBarTintView release];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
But it is taking a lot of time to change (only for the first time). What am i doing wrong? Can anyone help me?