Posted By

espinallab on 04/14/11


Tagged


Versions (?)

Universal Getters - App


 / Published in: Objective C
 

  1. //In the .h file
  2. +(MyApp_AppDelegate *)get;
  3.  
  4.  
  5. //In the .m file
  6. +(MyApp_AppDelegate *)get{
  7. return (MyApp_AppDelegate *)[[UIApplication sharedApplication] delegate];
  8. }
  9.  
  10.  
  11. //From another class file
  12. [[GamePack_AppDelegate get] introFinishedPlaying];

Report this snippet  

You need to login to post a comment.