Category Archives: iOS

Over the past year or so I've been trying out Resilio Sync (formerly BitTorrent Sync) as a possible alternative to Dropbox. It's gradually improved to where I think I can rely on it. With my Dropbox subscription up for renewal in a couple of weeks, now's the time. In this post I'll describe how to set up Resilio to get a Dropbox-like experience. What I want from file syncing I've used Dropbox for several years now. Their original feature is the only one I've ever cared about. I get a folder on my Mac that transparently syncs to my other Mac. I can also access files from an iOS app. Dropbox has built a bunch of other stuff onto their service, but I don't care about any of that. I want files to sync between Macs, and that's it. For a variety…

read more →

This post is based on a lightning talk I gave at CocoaConf San Jose a couple of days ago. It's that time of year-- the time when summer time, or "Daylight Saving Time" as we for some reason call it in the USA-- is ending. That time when a developer's thoughts turn to date math and what a pain in the ass it can be. Why is this so hard to get right? It'd be nice to think that dates and times follow predictable routines whose cycles all use nice round (or at least consistent) numbers. However: The universe doesn't care about regular numbers. The length of a year doesn't divide into an integer number of days. Convenient time periods like months are no better. The Earth's rotation isn't entirely consistent. So we have leap years, and leap…

read more →

Later this month I'm hosting Stump 360 III: The Search for Stump, the third annual Stump 360. It's part of 360iDev in Denver. It's on August 23, 4:45pm - 6:00pm. In case you're not familiar with Stump 360, here's some possibly interesting information. Stump is sort of approximately a game with two teams, the audience and the panel. It's a quiz/trivia style event where each team poses questions to the other in the hope of stumping them. But don't take the game too seriously. I certainly don't. Ideally everyone will have some fun, and just maybe, some people will get correct answers to some of the questions. Having fun is more important than being able to recite complex technical answers from memory. The panel is made up of volunteers from…

read more →

One of the cool things UIStackView can do for you is make it easy to dynamically update your app's user interface while it's running, with smooth animations and not a lot of code. My recent talk at iOSDevCamp DC covered some techniques. Natasha the Robot wrote a couple of great posts based on my talk, and today I'm going to talk about another unexpected (to me?) use of stack views. Animated Updates with Stack Views Stack views exist to figure out the layout constraints for their arranged subviews. But only for the stack views that are visible. It might seem obvious but stack view layouts don't consider subviews that don't appear on the screen. The great thing about this is that you can dynamically update your UI just by changing the value…

read more →

As I mentioned in my last post, last week I did a talk at iOSDevCamp DC where I talked about UIStackView, a relatively new UIKit class that's my new favorite thing in iOS development. I'm going to cover some of the more useful things UIStackView can do in posts here, which will fall more or less into two categories: Simplified and flexible UI design, making common UI patterns easier to implement and modify. Dynamic UI updates when apps are running, including UI animations and updates triggered by size class changes. Today I'll hit point #1 above. The cool, useful thing is this: Stack views make (most of) your autolayout constraints unnecessary, for common linear UI layouts. Side by Side Comparison So let's take a look at what UIStackView…

read more →