I have a simple UIViewController
and a UIButton
on it. I would like that when pressing the button a custom UIView
I created (using XIB
) will be added in a modal way so no other control or button under could be pressed.
currently I do:
VODPopup *popup = [[VODPopup alloc] initWithFrame:CGRectMake(100, 95, 200, 150) pickerData:vodEpisodesPickerData];
popup.delegate = self;
[self.view addSubview:popup];
Which adds to UIView
instance as a subview to my ViewController, BUT all other buttons located outside the UIVIew
are pressable.
any idea??