I want to add a view button dynamically. Here is the code.
UIButton *x=[UIButton buttonWithType:UIButtonTypeRoundedRect];
I did not use the "alloc" function here.
The questions for these statements are as follows.
alloc/init new, , . UIView, , .
release . , .alloc/init, .
release
using this method u can not relese button
instead of using
UIButton *x = [[UIButton alloc]init];
and then release