Ustawianie obrazu dla kodu UIButton w kodzie

Jak ustawić obraz dla kodu UIButton w kodzie?

Mam to:

UIButton *btnTwo = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 
btnTwo.frame = CGRectMake(40, 140, 240, 30);
[btnTwo setTitle:@"vc2:v1" forState:UIControlStateNormal];
[btnTwo addTarget:self action:@selector(goToOne) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:btnTwo];

ale nie zobacz, co ustawi dla niego obraz.

questionAnswers(11)

yourAnswerToTheQuestion