Archive for December, 2011

My iTunes Match Experience

Friday, December 16th, 2011

I’m in the middle of setting up with iTunes Match. So far, it’s been anything but smooth. First off, I signed up during the brief window when iTunes Match was available for sale but not actually working in Canada, so I had a completely broken service for a day or so. But once it was […]

iTunes Match Canada Rollout

Thursday, December 15th, 2011

Or not-rollout as the case may be. Last night I read that iTunes Match had been switched on in Canada, so I fired up iTunes and went to my account page, and there was an option to Learn More about iTunes Match. I clicked on that and it let me sign up. But after that […]

UITableView selection not sticking when reloading cells

Monday, December 12th, 2011

I have some UITableView code that was setting a selection, and then later making some other changes to the cell using reloadRowsAtIndexPaths:withRowAnimation: and I was having trouble figuring out why my selection wasn’t sticking. I’d select an object, but it wouldn’t show as selected. Turns out reloadRowsAtIndexPaths:withRowAnimation: will deselect whatever rows you reload. Check this […]

Reinstalling Xcode

Monday, December 12th, 2011

I ran into a problem with my Xcode install. I had actually just dragged it over from another volume, and this seemed to work, but I was having some trouble running Instruments, so I decided I’d just reinstall it. I uninstalled Xcode, went to redownload it, but the Mac App Store still said it was […]

Creating a UIView with a Tiled Background

Tuesday, December 6th, 2011

Tiling a background texture is a pretty common thing to want to do. Instead of creating one large texture that fills the entire background, instead the goal is to take a smaller image, say 256×256, and repeat it horizontally and vertically to fill the background. As far as I can tell, there’s no way to […]

UIManagedDocument autosave troubleshooting

Saturday, December 3rd, 2011

I’d been having some trouble with UIManagedDocument that turned out to be my fault, but it wasn’t easy to figure out. In the end there were a couple of things that helped me figure out what was going on, so I’m posting them here in the hopes that I’ll save someone else some time. UIManagedDocument […]

Building a Dynamic UIActionSheet

Saturday, December 3rd, 2011

Most of the examples I see for UIActionSheet (the iOS pop-up menu) show static choices and checking for which one was picked by using constant values. That’s not going to work if your menu needs to be dynamic. For example, if you want to have an option to Email or Print an item, you might […]