Search code examples
iosuiimageuipickerview

UIPicker Not Showing Up


I have a UIPickerView that I made programmatically but everything I made in interface builder and the picker wont show up once I run the app. It worked before I made the background in IB (which is a UIImage).Everything else shows up.

- (void)viewDidLayoutSubviews(viewDidLoad)
{
    [self.view bringSubviewToFront:picker1];
    [self.view sendSubviewToBack:backgroundImage];
    [backgroundImage addSubview:picker1];
}

I've tried all these.My brain is dead and I really just need help. Why wont my UIPickerView show up. All the needed data is there it worked before I put a background on it.Can anything be done ?


Solution

  • Make sure that your data delegates is connected to the view. You can do this by going to the storyboard and clicking the Files owner and connecting the referencing outlets to the view.