I have created a bottom slide up view controller for a main view controller, but I'm not sure how to pass information from the main view controller to the slide up one. I have a button in the main view controller that can show or hide the slide up view controller, and I want to use the button to pass information. The code below is the IBAction for the button which would show/hide the slide up view controller, but without a segue I'm not sure how to pass anything.
- (IBAction)btnMoveToShowBottomView:(id)sender {
UIButton *button = sender;
switch (button.tag) {
case 0:
[_delegate moveToHideBottomTableView];
break;
case 1:
BottomTableViewController *tableScreen = [[BottomTableViewController alloc]...];
tableScreen.photoDesc = selectedPhotoDesc;
[_delegate moveToShowBottomTableView];
break;
default:
break;
}
}
In the code above I've tried to access the slide up view controller (with a class called BottomTableViewController), but there seems to be a problem because it is asking for an expected expression when I attempt to access an object in that class (an NSString called photoDesc).