My search View controller searchVC has a UIImageView* backgroundImage
I would like to set backgroundImage to be my view’s image.
Why does this code not work ?
[searchVC.backgroundImage initWithImage:[UIImage imageNamed:@"someimage.png"]];
[searchVC.view addSubview:searchVC.backgroundImage];
I think it should be: