UILocalNotification alertbody processes '%' characters

Originator:miklselsoe
Number:rdar://15553633 Date Originated:27-11-2013
Status:Open Resolved:
Product:iOS SDK Product Version:7.0.4
Classification:Other Bug Reproducible:Always
 
Summary:
If a '%' character is included in a string that is set on the alertBody property of UILocalNotification, the character is squashed in the alert output as if the string was a format string. It can be worked around by doubling '%' characters. To display a '%' in the output, you then have to set a string with '%%'

Steps to Reproduce:
Create and schedule a UILocalNotification with the alert body:
@"10% of battery remaining"

Expected Results:
When displayed, the local notification should look like this:
[App name]
10% of battery remaining

Actual Results:
When displayed, the local notification instead looks like this:
[App name]
10of battery remaining

Version:
iOS 7.0.4

Notes:
If I create and schedule a UILocalNotification with THIS alert body:
@"10%% of battery remaining"

The local notification is displayed as expected.

Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!