I'm trying to add a UIButton with code (not Interface Builder).
Some examples say you MUST alloc and release memory for the button.
Others use buttonWithType and magically create a button without alloc'ing any memory at all.
How is that possible?
(Both seem to work fine.)
Which of the 2 methods do I want to use... and when? Are there some huge benefits to 1 method or another?
PLEASE don't tell me to just go "read the docs". The docs are the REASON I am here. They rarely seem to explain things without leaving out tons of 'missing info'.