UITableViewCell show white background and cannot be modified on iOS7

I’ve implemented a custom table view cell class that inherit from UITableViewCell. The tableview contains a background image, so I want cell’s background to be transparent. It looks great before iOS7. However, in iOS7, the cell is always shown with a white background. Even for Xcode7, 2015, there is a bug in storyboard: you have … Read more

Warning :-Presenting view controllers on detached view controllers is discouraged

In my app, I am using a navigation controller. Later on in some view I am using presentViewController for showing a zoomed image. Also I am not using a Storyboard or nib. I am getting this error in iOS 7 only. It works fine in iOS 6 and earlier: Presenting view controllers on detached view … Read more

‘Missing recommended icon file – The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120×120′ pixels, in .png format’

I submitted an app update, but I have received an email telling me this error has occurred: Missing recommended icon file – The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120×120’ pixels, in .png format How can I fix this problem? Here are the current icon requirements from … Read more

How do I hide the status bar in a Swift iOS app?

I’d like to remove the status bar at the top of the screen. This does not work: func application (application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool { application.statusBarHidden = true return true } I’ve also tried: func application (application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool { self.window = UIWindow(frame: UIScreen.mainScreen().bounds) var controller = UIViewController() application.statusBarHidden … Read more

How to Apply Gradient to background view of iOS Swift App

I’m trying to apply a gradient as the background color of a View (main view of a storyboard). The code runs, but nothing changes. I’m using xCode Beta 2 and Swift. Here’s the code: class Colors { let colorTop = UIColor(red: 192.0/255.0, green: 38.0/255.0, blue: 42.0/255.0, alpha: 1.0) let colorBottom = UIColor(red: 35.0/255.0, green: 2.0/255.0, … Read more