Added layer name generation

Updated sample too to add UIButton in examples
Yes, but if user is using some king of custom control, that doesn't support attributedText, just text property ? I think it's better to let both test, to handle this special case.