I am inside a class on a view-based app, one that was creating with one view controller.
WHen I am inside the view controller I can access its view using self.view, but how do I access the same view if I am inside a class?
[[UIApplication sharedApplication] delegate]... //??? what do I put here?
thanks
Assuming that the view controller is a member of your application delegate. you can access it like this: (“YourAppDelegate” should be replaced with the actual type name of your application delegate)
( ( YourAppDelegate *) [ [ UIApplication sharedApplication ] delegate ] ).viewController.view;