Some holes plugged and words augmented
More things to do today.
The first one was to make sure you could actually read the “About” page text. While it may look perfectly fine in the iPhone Simulator, it certainly didn’t on my iPod. The size 12 text was way too small so I bumped it up to 14. Much better.
Something else to do was check to make sure I wasn’t leaking memory everywhere. Pissing off a device with as little as 128MiB of memory, a good chunk of which doesn’t appear to be accessible to use by your app, isn’t a good idea. I didn’t expect many leaks, if any, because the interface is made entirely in Interface Builder. Programatically building interfaces just annoys me when you could do much more easily using a mouse. Considering how basic the two views in OutNumber are I’d say I did the right thing.
Back to the plugging of the holes, it became perfectly obvious what I’d done. In splitting off a couple of threads I’d forgotten to clean up after myself. The main thread always does, hence no leaks there, but every time you’d roll the dice or shake the device to clear the game, instant leak. Easy to fix.
Oh and there was one more thing. Those little info-buttons that you see in all the apps that flip the screen over (e.g. Weather, Stocks, OutNumber) are incredibly hard to hit when you set them in Interface Builder. They’re 18x19 pixels. That’s extremely small on an iPhone’s or iPod touch’s screen (320x480). The answer around the internet is to make the button programatically and extend the touch area in the parameters. Those parameters don’t exist in the same way in Interface Builder so you have to fudge it kinda. Instead of programming the button manually, I’ve chucked a custom button over the top with no image set, so it’s invisible. Since the button is bigger the touch area is also bigger. Apple should fix this themselves really. The touch area is way too small.
That’s it for today, see ya!
