Thanks for the reply, @cvp.
I'm implementing the myButton method as a class method, so I don't think creating an instance is necessary.
I wanted to define a class method that returns a customized instance, like UIButton's systemButtonWithImage:target:action: method.
But this story should be put aside for now. As you say, similar things seem to be happen even when defining them as regular methods.