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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -