Don’t know what gifts to buy this holiday season? Keep reading…
In one of my recent projects I added a content inset on the top of my table to push the start of the content down. Unfortuantely when you set the content inset the table assumes that all your sticky section headers now also start from the end of the content inset. This was not the behaviour I wanted, and instead I needed them to stick to the top of the table where the cells start to go out of bounds.
Whenever you have a couple of apps that are extremely similar, it will make sense to share the code between the two. For example, a Lite version and a Paid version of the same app, or the same app skinned differently for different clients. At first you might be tempted in duplicating the project. Don’t. If the code splits then it’s going to be a nightmare copying changes between two places, or even just having them in two separate projects.
This is a real world iOS example, but can be applied to PNGs in any scenario.
In iOS the splash screen images have to be PNGs. This works great for simple images with just a few colors, but will result in huge PNGs if you plan on having photo content, especially on the retina iPad with a screen resolution of 2048×1536.
At first I figured because PNGs are lossless that there’d be very few ways to reduce the filesize. I am going to run through the well known ways and some others that were new to me.
Something I often see with pretty much every app on the AppStore with In App Purchases is that they don’t update prices if I login with an account linked to a different store than the one the prices have already loaded for.
b2cloud’s Director and Commercial Manager, Luke Smorgon, shares how to transfer an app to another developer in the App Store.
The other week I compiled a calculator to determine what bar tint color to set a UINavigationBar to if you want the blur effect on iOS 7. This works well, but only if your RGB values are >= 102 – because Apple adjusts the RGB you set the bar to.
Lately I’ve been experimenting with darker colors, those with RGB values under 102. There is a work around, however it requires some tricks.
Is your app complying with best practice for user privacy? Follow this guide to make sure.
Too often I see UIAlertViews and UIActionSheets being setup poorly. When adding more than 2 buttons, I see a lot of people in the delegate method hardcoding button indexes (if you find yourself hardcoding anything, often you should look for a better solution).
An attributed string is a way of storing a piece of text with styling. Similar to the way html works, it can specify certain styles for bits and pieces of the text. They are pretty simple to work with if you’re adding new attributes. If you are changing attributes then things can get a bit trickier as your existing attributes may be overwritten.