Shared AppDelegate

Вставляем в начале проекта и уменьшаем количество написанного кода:

 + (AppDelegate *)sharedAppDelegate {  
   return (AppDelegate *)[[UIApplication sharedApplication] delegate];  
 }  

Leave a Reply

Your email address will not be published. Required fields are marked *