Standalone Delegate Objects

It is very common practice that an object like a view controller is the delgate (and perhaps datasource) for another encapsulated or included object, such as a table view. This affords easy access from the delegate methods to the delegate object. But when might you want to use a delegate object that is not your main view controller? And why?
Continue reading →

Posted in: iDevBlogADay, Software Development

Unit Testing for Fun and Profit

How do you know if your code works? You test it of course. But, how do you test your code? Do you run it in the simulator? On your device? Is that enough? The simple answer is: No. How can we do better? Answer: Unit testing! Continue reading →

Posted in: iDevBlogADay, Software Development

Later Never Comes

What is the cost of expedience? Answer: Technical debt. How often have you had to solve a problem quickly, knowing that your solution was correct (i.e. it works), but not really how you’d have liked to do it? Sometimes the real world demands such tactics, and we think “We’ll fix it later.” But later never comes.

Continue reading →

Posted in: iDevBlogADay, Software Development

Agile By Fire

One of the features of my new day job is that the development environment is full-on Agile. It’s my first experience in such an environment, and while I’ve worked in plenty of places that used bits and pieces of Agile, an “all Agile all the time” development model is quite eye opening. I’ve had to literally learn and adapt to Agile on-the-fly — by fire, if you will.

Continue reading →

Posted in: iDevBlogADay, Software Development

Annual Apple Shutdown Begins Now!

If you are an Apple Developer, you have no doubt been bombarded lately with reminders that Apple is shutting down its developer portal for Christmas beginning today Friday, December 21st, through next Friday, December 28th. What shall we do without our daily dose of download statistics?! Continue reading →

Posted in: iDevBlogADay

[self viewDidChange]; — Wait. What?

No, that’s not a new and magical API in the title. Just an eye catcher…

Continue reading →

Posted in: iDevBlogADay

Pro Tip: Data Types Matter

I made a stupid mistake recently, which cost me more than a few hours of time to figure out. But I learned a couple things: Xcode will let you dig as deep a hole as you like, despite its “assistance”, and no amount of experience is a substitute for taking your time, especially when writing code.

Continue reading →

Posted in: iDevBlogADay, Software Development

Geofencing Followup

In a previous post I wrote up some discoveries I had made about using geofencing — region monitoring in iOS parlance — based on some testing I had done. I have since applied those experiments to a real world application and made some new discoveries, which follow.
Continue reading →

Posted in: iDevBlogADay

Composite Images using Image Masks

In my last post about dynamic pattern images , I showed how to create images on the fly for use as background pattern images. As promised, today I’ll show how to create composite images with cutouts using masks.

Continue reading →

Posted in: iDevBlogADay

Dynamic Pattern Images with Core Graphics

The image handling capabilities available in iOS (and OS X for that matter) are pretty spectacular. Using only high level APIs, you can work with images quite easily. But lurking very close to the high level APIs is Core Graphics, where in the real power lies.
Continue reading →

Posted in: iDevBlogADay