Xcode 5 & Asset Catalog: How to reference the LaunchImage?

This is the (almost) complete list of the LaunchImage (excluding the iPad images with no status bar): [email protected] [email protected] LaunchImage-700-Landscape@2x~ipad.png LaunchImage-700-Landscape~ipad.png LaunchImage-700-Portrait@2x~ipad.png LaunchImage-700-Portrait~ipad.png [email protected] LaunchImage-Landscape@2x~ipad.png LaunchImage-Landscape~ipad.png LaunchImage-Portrait@2x~ipad.png LaunchImage-Portrait~ipad.png LaunchImage.png [email protected] [email protected] (iPhone 6) [email protected] (iPhone 6 Plus Portrait) [email protected] (iPhone 6 Plus Landscape) [email protected] (iPhone X Portrait) [email protected] (iPhone X Landscape)

Access Asset Catalog pathForResource

Same problem, but I don’t think we could access it via pathForResource:, except below: UIImage* image = [UIImage imageNamed:@”name-in-asset-catalog”]; It has been clearly documented: Each set in an asset catalog has a name. You can use that name to programmatically load any individual image contained in the set. To load an image, call the UIImage:imageNamed: … Read more

Get global tint color from code

Easy. Objective C: UIColor *tintColor = [[self view]tintColor]; Swift: let tintColor = self.view.tintColor; This should get the tintColor set on the app. If you change it, this property should get updated. This assumes you’re inside a viewController or a subclass of one and that you haven’t overridden the tintColor in some superView between this view … Read more

UIStatusBarStyle PreferredStatusBarStyle does not work on iOS 7

I discovered that if your ViewController is inside a navigationController then the navigationController’s navigationBar.barStyle determines the statusBarStyle. Setting your navigationBar’s barStyle to UIBarStyleBlackTranslucent will give white status bar text (ie. UIStatusBarStyleLightContent), and UIBarStyleDefault will give black status bar text (ie. UIStatusBarStyleDefault). Note that this applies even if you totally change the navigationBar’s color via its … Read more