iphone - What is the difference between UILocalnotification and delegates? -
i have application in want notified whether method called or not other class. so, bit confused whether use uilocalnotification
or create delegate method using protocol
. please me.
you should use either delegate/ protocol
or nsnotificationcenter
. cannot use uilocalnotification used different purpose.
instances of uilocalnotification represent notifications application can schedule presentation users @ specific dates , times. operating system responsible delivering notification @ proper time
that means uilocalnotification used notify user of application not custom class objects. appear alert if app in background.
if want notified changes use nsnotificationcenter. solve problem no need of delegate here.
here tutorial
nsnotificationcenter tutorial
Comments
Post a Comment