ios - I need to sort my local notification using the user info -
i trying sort alphabetically local notifications using userinfo, don't know how it,i tried alertbody, doesn't work.
nssortdescriptor * userinfodesc = [nssortdescriptor sortdescriptorwithkey:@"alertbody" ascending:yes]; nsarray *descriptors = [nsarray arraywithobject:userinfodesc]; nsarray * notificationsarray = [[[uiapplication sharedapplication] scheduledlocalnotifications] sortedarrayusingdescriptors:descriptors];
Comments
Post a Comment