Added layer name generation

Updated sample too to add UIButton in examples
Is this an accidental commit?