Hi everyone,
I'm trying to trigger a function in a view class, from the view controller once it has finished loading.
Currently the code I'm trying to run is this
GameView *gameView = (GameView *)[[UIView sharedApplication] delegate];
[gameView loadText];
I've borrowed this code from other code which triggers functions on the appdelegate class.
I'm also not sure how to get a more detailed error message than objc_exception_throw, so if anyone could tell me how to debug it further that would be great.
This code is running inside the GameViewController.m file, which does import GameView.h
The warning xcode states is
warning : 'UIView' may not respond to '+sharedApplication' Messages witjhout a matching method signature will be assumed to return 'id' and accept '...' as arguments.)
Thanks for any help. Let me know if I have to post more code.