我正在寻找一些文档来找到最大长度alertBody
of a UILocalNotification
之前它会被剪辑在通知中心(横幅)或弹出警报中。
I haven't found any specific limit documented. However, you can try it out and see that the notification drop down shows about 80 characters. This is on an iPhone 5S with iOS 7.1.
The notification center shows more of the message. In this case about 138 characters before it starts truncating.
Of course with proportionally space fonts the number of characters depends on the width of those characters, the iPhone has less width to display text than the iPad, and future version of iOS may change this.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)