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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -