A common question facing an iOS team when starting a new App is whether to use Storyboards or not. As a professional iOS developer I don’t think this is an either / or question – you need to know both how to programmatically define and use UIViews (including Auto Layout) and how to effectively use Storyboards in a team environment.
At WWDC 2015 with Xcode 7 Apple introduced Storyboard References and the ability to Refactor your large storyboards into more manageable Storyboards from within Interface Builder to avoid the Storyboard merge conflicts. Continue reading
In an Instagram Clone app I started working on I had to make the following two customizations in order to match Instagram.
Changing the tint color on the tab bar and
Removing the bar item text in the tab bar
Today’s code challenge is about being cool.
A number is cool if it’s a multiple of 11 or if it is one more than a multiple of 11.
Return true if the given non-negative number is cool.
Continuing our Swift 3 Challenges today’s challenge has to do with order.
Given three ints, first, second, third, return true if
the second is greater than first, and third is greater than second.
However, with the exception that if the parameter “itsOk” is true,
second does not need to be greater than first but still better be less than third.
Another day, another Swift 3 puzzle. This one is about singing birds. Remember to try it before you look at my solution.
The problem description states:
The birds in Florida like to sing during favorable temperatures.
In particular, they sing if the temperature is between 60 and 90 (inclusive).
Unless it is summer, then the upper limit is 100 instead of 90.
Given an int temperature and a boolean isSummer,
return true if the birds are singing and false otherwise.
I’ve started doing code puzzles from CodingBat. CodingBat is a project by Nick Parlante, a computer science lecturer at Stanford. Continue reading
Two years ago I wrote an entry on Cocoa Programming on Ubuntu that relied on the stable and mature but outdated Objective-C based GNUstep. It was hackey but it was the only way to do it then.
Last week Apple just made its self imposed date of delivering its new, modern, platform language, Swift, to the open source community and making it easy to use on Ubuntu. I have been itching to upgrade to 15.10 and what better excuse than to work on Swift.
Craig Federighi Introduces Open Source Swift on Linux at WWDC 2015
This entry is my walkthrough on the steps I took to get a working Swift IDE on Ubuntu. Tl;dr: its like super easy and fun. Continue reading