iphone Programming Glossary: privatedelegate
Dismissing UIAlertViews when entering background state http://stackoverflow.com/questions/3105974/dismissing-uialertviews-when-entering-background-state objc runtime.h @interface UIAlertViewAutoDismiss UIAlertViewDelegate id UIAlertViewDelegate __unsafe_unretained privateDelegate @end @implementation UIAlertViewAutoDismiss id initWithTitle NSString title message NSString message delegate id delegate.. anOtherButtonTitle nil anOtherButtonTitle va_arg args NSString self addButtonWithTitle anOtherButtonTitle privateDelegate delegate return self void dealloc privateDelegate nil NSNotificationCenter defaultCenter removeObserver self name UIApplicationDidEnterBackgroundNotification.. va_arg args NSString self addButtonWithTitle anOtherButtonTitle privateDelegate delegate return self void dealloc privateDelegate nil NSNotificationCenter defaultCenter removeObserver self name UIApplicationDidEnterBackgroundNotification object nil super..
|