Yes you understand the actual problem
Try to create
//In appdegate .h
GamePlay1 *controller;
//In appdegate .m
controller = [[GamePlay1 alloc]init];
in app delegate
file so that you will get access of controller object. Then it will trigger the dismiss
To access it use
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
[appDelegate.controller end];