Showing posts with label settings. Show all posts
Showing posts with label settings. Show all posts

Monday, April 11, 2011

Easy Way to Create Settings View

Most applications need settings or at least a way to display version number. In theory it's very simple: just show a short list with a few hardcoded rows. It could be difficult, but since "settings" is such a common use case, Apple iOS SDK offers special support. It's not quite perfect, so let's check the possibilities.

Tuesday, January 4, 2011

How to Update CFBundleVersion Before Building Application

Used to update application version number in appDelegate.m during startup. The problem was that user has to run the application at least once to update version number in system Settings application.

Before that moment version number was either missing or wrong, depending on what the default value was. Not good.

Thursday, January 28, 2010

How to Add Linebreak into Settings.bundle String

You need to add application copyright notice into Settings.bundle, but realize that using separate Title (PSTitleValueSpecifier) and String (DefaultValue) side by side is too wide. End of copyright notice is not visible, it's automatically truncated with "...". What to do?

You could add a single title row (PSGroupSpecifier) with "Copyright © 2010 by" and a value row below it with name of the company. Doesn't look quite right, seems like a user-defined setting!

Another solution is to use only title row for both (PSGroupSpecifier) strings together (Title). It wraps by default, which might not happen in a way you want. Want more control? Open Root.plist file as source code. Add 
 to force a line break in the exact location you want to.