Transformer lets you mock up attributed strings and then copy the related iOS code.