#pragma mark in Swift?

You can use // MARK: There has also been discussion that liberal use of class extensions might be a better practice anyway. Since extensions can implement protocols, you can e.g. put all of your table view delegate methods in an extension and group your code at a more semantic level than #pragma mark is capable … Read more

How to change Status Bar text color in iOS

Set the UIViewControllerBasedStatusBarAppearance to YES in the .plist file. In the viewDidLoad do a [self setNeedsStatusBarAppearanceUpdate]; Add the following method: – (UIStatusBarStyle)preferredStatusBarStyle { return UIStatusBarStyleLightContent; } Note: This does not work for controllers inside UINavigationController, please see Tyson’s comment below 🙂 Swift 3 – This will work controllers inside UINavigationController. Add this code inside your … Read more