Customize the background color and title of a UINavigationBar and the status bar

Here’s an example of how to customize the background and title color of a UINavigationBar without having to use an image (in this case, a blue background with a white title AND white status bar): // Set the navigation bar to blue [[UINavigationBar appearance] setBarTintColor:[UIColor blueColor]]; [[UINavigationBar appearance] setTranslucent:NO]; // Set the navigation bar’s title …

Strange Case of the non-scrolling-to-top UITableView

Earlier today I had a situation in which the gesture to scroll a UITableView to the top by tapping on the iPhone status bar was not working. Strange and annoying. On doing some investigation, I found a clue on StackOverflow which pointed me in the right direction. It turns out that if you have a nested scroll view …

Xcode Tip: Open multiple projects at once

I discovered this one accidentally since I really did want to open three projects at the same time after opening Xcode. It turns out that the “Open Project…” dialog in Xcode supports multi-select! So you can Shift-Down/Up to select more than one project, hit Return and all three projects will be opened simultaneously! I pretty much …

Developing for Bluetooth Low Energy and iOS – Now at Cloud City Blog!

As you may or may not know, I currently work for the software development consulting company, Cloud City Development in San Francisco. They kindly asked me to write a blog post on the subject of Bluetooth Low Energy and iOS, and of course I jumped at the chance! The great news is that the first …

Fixed Problem with Red Bear Labs BLE Shield and Arduino!

Yesterday, I was successfully running the “HelloWorld” demo from Red Bear Labs (using Arduino 1.6.3) and then when I attempted to compile and load the “SimpleChat” sketch, it started to freak out and I was getting ‘EEPROM.h not found’ errors and general mayhem — until this morning. I’m not sure if this is helpful but …

Syntax highlighting for Swift in BBEdit and TextWrangler

Big thanks to Curt Clifton (https://github.com/curtclifton – his bio indicates that he’s with the Omni Group!) for creating this codeless Language Module for Swift that can be used in BBEdit and in TextWrangler. A BBEdit Codeless Language Module for Swift Curt indicates there are some limitations to codeless language modules: Keyword, comment, and string highlighting …

Smoother transitions when showing a View Controller with a UINavigationBar in Swift

Here’s the scenario. You want to display a modal view controller without a navigation bar, and then from that view controller you want to navigate to another view controller that displays a navigation bar. First to get things set up, in the Storyboard we set up the view controller that would be displayed modally. We …

How to create an Objective-C Bridging header

Super important to know during this time of Objective-C to Swift transition. I’ve had to use this technique and it will be good for all Swift developers to have in their kit-bag until we can finally be 100% Swift. How to create an Objective-C Bridging header – iOS-Blog So you want to use an Objective-C …