Ad

Our DNA is written in Swift
Jump

Radar: Monitoring CLRegion immediately after removing one fails

This gotcha became apparent to me while putting together the sample app for the seventh and last chapter of my book. There I am monitoring for the 10 regions from a plist which are closest to the user. I was removing all monitored regions and re-added the 10 I am interested in. To update the state I called the requestStateForRegion: but didn’t get a state update. Instead the monitoring failed with error code 5. Fortunately a workaround is possible.

Submitted as rdar://16986842 and to OpenRadar.

Read more

Forward Geocoding

There are two kinds of Geocoding which you might encounter: forward and reverse. The class doing that for you in iOS is CLGeocoder. It is both capable of doing it forward (from address to lat/long) and reverse (from geo coordinates to placemarks). For this tutorial we will build an app that lets you search for addresses and display the results individually on a map view.

Read more

Radar: NSParagraphStyle’s +defaultParagraphStyle return type should be instancetype

This minor SDK inconsistency was submitted as rdar://16939304 and to OpenRadar.

Read more

Radar: Search Bar jumps around and disappears

iOS 8 might be around the corner and things like this are probably fixed. Still, that does not mean you shouldn’t file your grievences. On this Radar Apple is getting two bug reports for the price of one.

Filed as rdar://16938543 and on Open Radar.

Read more

Book Updated (Again)!

Readers of my book get good news today! My publisher Manning released a new chapter for the early-access-version of the book.

Previously available chapters 1 through 5 have seen lots of improvements and clarifications based on valuable reader feedback as well as the keen eyes of my editor. The first 3 chapters are now locked for pre-production. That means that various experts are honing in on the manuscript and are putting the polish on for the bound book release!

It’s shaping up to be a really awesome publication. If you haven’t pre-ordered the book via Manning’s Early Access Program (MEAP) then please do so today!

Read more

Radar: Support testing of region monitoring in Simulator

A bit of an annoyance when trying to implement geographic region monitoring.

Filed as enhancement request as rdar://16924908 and on Open Radar.

Read more

DTFoundation 1.6.3

This maintenance update to DTFoundation fixes an issue with DTFolderMonitor. The update is available via GitHub tag or Cocoapods.

Read more

Radar: Add global prototype cells

If you like storyboards you might be wanting to use them for larger apps too. But there is source of frustration for us developers. If you have prototype cells that are identical on multiple table view controllers you cannot easily copy them. I filed a feature suggestion for adding global prototype cells.

Filed as rdar://16754279 and on Open Radar.

Read more

DTLocalizableStringScanner 1.0

There’s been a bit of movement on our open source replacement for genstrings. So I figured it would finally be deserving of getting the same treatment as all our other popular repos: automated unit testing, coverage tracking, releases via CocoaPods.

Because of the unwieldy name I refer to it as genstrings2 and it provides the scanning functionally for the Linguan Mac app which was acquired by Peer Assembly.

Read more

Unwinding

You know the story: you have an app laid out as storyboard, want to show a modal view controller and when the user is done with it it you want to dismiss it, … or un-present it, or whatever you need to get rid of the modal VC and return. Now what about a view controller that can be both presented modally or via push onto a navigation controller?

Then it starts to get complicated. Unless you know about how to unwind. It’s actually quite awesome, but you have to use it several times because it is a little bit counter-intuitive how to implement unwinding. I’m writing this tutorial so that I myself can remember how to do it in the future.

Read more