A harmless Database update
I was debugging a Swift Mac app that I’m developing that uses Realm for a database. The version of RealmSwift I was currently using was 2.10.0 as specified in my Podfile.
I opened Realm Browser to inspect a record in my database. Having been recently updated to version 3.0.1, it alerted me that my database was using an older file format and offered to upgrade it. I accepted without thinking much of it.
An unexpected error
I wanted to write-up the result of a code challenge that I completed a while ago. I was asked to create a tabbed iOS app with sectioned tables, pulling video thumbnails and article titles into different sections. Clicking on a thumbnail or article title would display the corresponding video or article in a separate view. Adding to the challenge, I was asked to provide bookmarking capability for the videos and articles. The bookmarked content would be visible in a second tab.
Challenge Details and GitHub app
The full details of the challenge and resulting project can be found at:
I recently took on a code challenge that was delivered in an interesting fashion. I was given a video that showed the manipulation of two images and was asked to create an iOS app that had the same behavior as the video.
After watching the video (many times), I extracted the following requirements for my app:
This article discusses the techniques I use for bookmarking code and adding log statements for both Objective-C and Swift.
When I develop code I often find a need to temporarily reference different sections that I’m working on, either within the same file or in many different files. Prior to Xcode 4 there was apparently a means to set and jump to bookmarks with keyboard shortcuts as mentioned in the article Killer Xcode Tips and Tricks – Tips 1 to 10 (see tips 7 and 8).
Posted in Objective-C, Swift
Tagged bookmark, debugging, downcast, iOS, logging, macro, objective c, pragma, preprocessor, Swift, Xcode