¡@

Home 

2014/10/15 ¤U¤È 10:04:31

iphone Programming Glossary: balanceupdatenotification

How to declare NSString constants for passing to NSNotificationCenter

http://stackoverflow.com/questions/2917941/how-to-declare-nsstring-constants-for-passing-to-nsnotificationcenter

I've got the following in my .h file #ifndef _BALANCE_NOTIFICATION #define _BALANCE NOTIFICATION const NSString BalanceUpdateNotification #endif and the following in my .m file const NSString BalanceUpdateNotification @ BalanceUpdateNotification I'm using this.. _BALANCE NOTIFICATION const NSString BalanceUpdateNotification #endif and the following in my .m file const NSString BalanceUpdateNotification @ BalanceUpdateNotification I'm using this with the following codes NSNotificationCenter defaultCenter addObserver self.. NSString BalanceUpdateNotification #endif and the following in my .m file const NSString BalanceUpdateNotification @ BalanceUpdateNotification I'm using this with the following codes NSNotificationCenter defaultCenter addObserver self selector @selector updateBalance..