Rss

Archives for : ios

Follow-up: How to Build an Xcode Project that Builds for Both iOS and macOS

Since I talked about making multi-platform projects like it was no big deal in my blog yesterday, I figured I should at least back that up.

macandiosbuilddemo (GitHub link) is an Xcode project that builds an iOS master-detail app and a macOS windowed app from the same code base. It’s fairly trivial and unpolished, just fetching a JSON feed from this blog, showing recent entries in a table, and letting you drill into one.

Side by side iOS and macOS apps, built from the same Xcode project

Continue Reading >>

Apple Didn’t Kill AppKit, Millenials Did

(yes, thank you for indulging my outrageous clickbait headline, which wildly misrepresents the contents of this blog post)

Two weeks after WWDC, and we’re all still talking about Marzipan, the de facto name for UIKit-on-macOS that was acknowledged in the keynote. Like, seriously, as I’m typing this Colin and Steve are arguing about it, so everyone who follows both of them gets to watch.

Craig Federigi showing diagrams of macOS/iOS app architectures

It won’t even be available to developers for another year, so we have lots of time to argue, and to enjoy the unintended consequence of Osborning macOS’ AppKit framework.

But… what if this is all sound and fury, signifying nothing? What if tasty Marzipan turns out to be a big Nothingburger? Because that could well be how it pans out instead.

Continue Reading >>

iOS 10 SDK Development now available

OK, third year on this annual book-update plan, here we go: iOS 10 SDK Development now available in beta.

Cover of iOS 10 SDK Development

Continue Reading >>

CocoaConf Fall tour, 2016

CocoaConf San Jose early bird registration ends tomorrow, so that’s my last chance to plug the talks I’m doing there.

(yeah, I know I said I was taking a pause from conferences, and I shouldn’t be pushing myself during what’s been the worst 12 months of my life, but what can I say, I like doing CocoaConf)

I developed two new talks for CocoaConf DC, and those are the same ones I’ll be doing in San Jose.

Continue Reading >>

Throwaways

Janie had a blog the other week about her self-destructive tendencies, one of which is to do things that feel productive but aren’t. A lot of her problem is reading a bunch of background information prior to starting a major project, something that has so many unknowns it’s imposing.

I get it because I’ve been in the same situation and done the same thing, and it didn’t work. But an approach far more naive turned out to work better.

Continue Reading >>

Curse Your Sudden But Inevitable Betrayal

You guys, and girls, you won’t believe this.

So at work, I’m doing a feature that requires sharing a pre-formatted message by the user’s choice of mail, iMessage/SMS, Twitter, or Facebook. So we use the typical iOS compose controllers from the MessageUI framework for the first two, and Social framework for the others. Everything’s fine, until my issue gets returned, saying that the Facebook share sheet has no text.

It’s fine for me when I test it, so I search around for “SLComposeViewController Facebook empty” and discover something.

Continue Reading >>

Paper Ball and Chain

We’re so close to finally having iOS 8 SDK Development out the door! We just got the index back on Friday, and it looks great. I spent some time last night going over it, looking for either missing topics or things that didn’t really need to be in there, and it all looked great. If anything, I came away thinking “did we really write all that?”

Clipping from iOS 8 SDK Development index

And yet I’m kind of wondering: do books even need indexes anymore?

Continue Reading >>

Let It Snow

I’m not the first to say this. Chances are you saw Marco Arment tweeting about it earlier in the week:

The latter half of 2014 has been a disaster in terms of quality of Apple software. As I was finishing up the book, I kept an index card of all the bugs I needed to file. I ran out of room.

List of bugs to file

Some of these have caused real pain, such as the Xcode 6.1 iOS Simulator not supporting internationalization — horrible for us when the third chapter of our iOS 8 SDK Development book walks through an i18n example, and a later chapter shows how to make a third-party keyboard extension, which doesn’t work because the simulator now only supports the US English and emoji keyboards.

Continue Reading >>

prepareForSegue()

tl;dr: I’m starting a full-time job today doing iOS development at rev.com. I’m not moving out to California. I’ll still be talking at conferences and possibly doing more books.

Continue Reading >>

Announcing iOS 8 SDK Development

Not that I’ve been even remotely subtle about it, but with today’s release of iOS 8 and the end of the NDA on its SDK, I can now officially announce iOS 8 SDK Development, now available as a beta book from Pragmatic Programmers:

Here’s the tl;dr:

  • Pretty much completely rewritten from previous edition
  • All code examples use the Swift programming language
  • Works through a single app all the way through the book so readers get experience of evolving a non-trivial app
  • Shows off iOS 8 features, including adaptive sizing strategies for the iPhone 6 and iPhone 6 Plus

Continue Reading >>