UIButton - aloca initWithFrame: vs. buttonWithType:

Given (arbitrariamente):

CGRect frame = CGRectMake(0.0f, 0.0f, 100.0f, 30.0f);

Qual é a diferença entre os dois trechos de código a segui

1.

    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = frame;

2.

    UIButton *button = [[[UIButton alloc] initWithFrame:frame] autorelease];

questionAnswers(6)

yourAnswerToTheQuestion