One of the things I like about Swift is the concise code, especially when it comes to working with closures. Take this example for instance:
Let’s say we’re trying to create a guitar using the make and model.
Say you have three views stacked in a row named “A”, “B” and “C”. If you wanted to remove “B”, it’s very simple to hide it by setting the hidden property to true, but then you’re left with an empty void between “A” and “C”. The best solution would be to close the…
In iOS 8, if you might sometimes have a UITableViewCell whose detailTextLabel is invisible. If you’re experiencing this bug, you’re probably assigning a nil or empty string (“”) to the detailTextLabel of some other cell somewhere else in your…
Apple announced a new language last week: Swift. Now that everyone’s had time to read the book and start playing with sample projects, a startling deficiency of the language has been uncovered. Swift makes no provision for access modifiers such as public…