• UI Tests and Code Coverage Data

    I recently implemented UI Tests in our application and added code coverage to our existing unit tests. There were a few issues we ran into while setting these features up. Many projects may just be able to check the “Gather Code Coverage Data” checkbox, but others may need special setup.

  • A Better Way to Autosize in iOS 8

    iOS 8 provides support for resizable table view and collection view cells using AutoLayout but what if you want to autosize an arbitrary view? For instance, let’s say I have a view with a label inside that I want to resize based on content with a maximum width of the size of the screen. In iOS 7 you might have used a combination of preferredMaxLayoutWidth, a width constraint, and systemLayoutSizeFittingSize to set a maximum width on the label and find the fitted size. There is now an easier way to do this with systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:.

  • First Install

  • The Tablet Wars

  • Living in the Cloud

  • The Mind of a Machine