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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -