iOS indie developers writing every day about their stuff.

Badged UIBarButtonItem

Mark Granoff
hawkimedia.com

A new project (nearly ready to release; stay tuned) required some custom UI. One element was a badged UIBarButtonItem, for which I wrote a custom class, which I am releasing as open source here: https://github.com/granoff/FFBadgedBarButtonItem So what’s the use case? You have a UIBarButtonItem in a navigation bar that you want to adorn with a … Continue reading →

Caching +imageForURL: Results

Mark Granoff
hawkimedia.com

About a month ago I wrote about the recurring but ever-solvable problem of loading images in the background without losing performance while say, scrolling a table view. While I would be pleased to ship that code today, there is an improvement that betters performance as soon as an image is requested more than once: Caching. … Continue reading →

Endlessly Solvable Problems

Mark Granoff
hawkimedia.com

There is no shortage of common engineering problems that have been solved over and over again, or just once. In either case, if a Good(tm) solution is found, it gets reused wherever it is needed. Others however, get solved over and over again. Not because they are hard or unsolvable, necessarily, but because they are … Continue reading →

Look Back, Look Ahead: New Year Observations

Mark Granoff
hawkimedia.com

Goodbye ’13, Hello ’14! This is the time of year where we all take stock of the year just ended, and think about what the coming year may hold. This is that post for me, a personal reckoning of sorts.Professionally, it was a good year. In December I celebrated one year at my day job, … Continue reading →

iOS7 UIPickerView Customization

Mark Granoff
hawkimedia.com

The iOS UIPickerView is one SDK component that leaves little to the developer for customization. With iOS7 and its entirely revamped look and feel just around the corner (allegedly), you may think that you’ll be stuck with the new and improved UIPickerView chrome which for many may feel sub-optimal for existing or new apps that … Continue reading →

The Next Thing

Mark Granoff
hawkimedia.com

I debated about what to write about today, especially in the wake of yesterday’s WWDC ticket frenzy, the subsequent online screaming about it, and everything else. I think in the end, Apple will do what Apple does, and that’ll be that. Enough about that. On to the next thing… a new app to develop! Some … Continue reading →

Standalone Delegate Objects

Mark Granoff
hawkimedia.com

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 … Continue reading →

Unit Testing for Fun and Profit

Mark Granoff
hawkimedia.com

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! It is a well established software engineering maxim that … Continue reading →

Later Never Comes

Mark Granoff
hawkimedia.com

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 … Continue reading →

Agile By Fire

Mark Granoff
hawkimedia.com

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 … Continue reading →