Monthly Archives: September 2017

Making your iOS App embrace the iPhone X notch

After yesterdays announcement I decided I’d rebuild RxCalc with the iOS 11 SDK. I figured things would rebuild and my app would fully embrace the new iPhone X without change, but it didn’t work. When I built the app it ran in what I’d call letter boxed mode. The top and bottom were cropped. It was like running an older app on iOS 7, if you’ve ever seen that.

UGH! Why you letterboxed bro?
UGH! Why you letterboxed bro?

I was puzzled. I tried all kinds of jiggery-pokery and nothing worked. So I finally did what any self respecting lazy developer would do. I asked Twitter for help, and Jeff Johnson saved the day.

I was — quite honestly — surprised something so little could make it work, but darn it, you gotta trust the experts. I added a new launch screen at the recommended 1125×2436 size and it worked! Yippee!

Hey, that worked!
Hey, that worked!

So, thanks Jeff! Also, if you’re looking for a bonafide Mac and iOS Developer you should consider reaching out to Jeff — he’s available for work — and has a history of shipping great Mac and iOS Software.

And remember — EMBRACE THE NOTCH!

Work Note: Loading View Controllers from a Storyboard

When I need to load a view controller from a Storyboard I like to create an extension to the view controller’s class and add a class function to it that does the work. It keeps things looking clean in the code where you use it.

I’m not sure if this is smart or dumb. I’m sure very smart people will let me know. Here’s an example.

Here’s how you’d use it in your code.

How I use Evernote

A few days ago Steven Frank was asking on Twitter why folks no longer post about their PIM’s and the like, which made me think of two people; Jerry Fahrni  and Cass McNutt. Both are information junkies and are always looking for a better way to organize their thoughts.

Over time I’ve had to find a way to organize mine. At one point I could keep

Evernote Work Note
Image of my Personal Projects Work Note.

everything in my head but as I’ve grown older that’s no longer possible. I had to find a way to group them electronically so I can search them. That’s where Evernote comes in. I just dump all kinds of stuff into it and rely on tags and searching to pull out what I’m interested in revisiting.

I call these streams of thought Work Notes and I have different work notes for different projects; Personal and Work to name a couple.

When I’m working on something I open up a specific Work Note, add today’s date, a hashtag just below that, and highlight the hashtag. This may not be the optimum way to organize but it works for me and Evernote is good at searching for them. I also include Evernote tags so I can search on those as well. The hashtags and the Evernote tags don’t necessarily match but they might.

As I work through the day I may paste an image into the note or make a bullet list or write about how I solved a problem. It can be anything I’m thinking related to the days work on this project.

Is it useful?

Yes, it’s useful to me. This may not work for you or your particular workflow but I’ve found it works great for me. Is it perfect? I don’t know that any generic solution is perfect for anyone. I’ve had my moments where I’ve considered using other tools to record my thoughts, like Day One, but I always find myself opening Evernote, adding a date, highlighting a hashtag, and going to work.