Objective-C – UILocalNotification alertBody 长度 [英] Objective-C – UILocalNotification alertBody length

查看:62
本文介绍了Objective-C – UILocalNotification alertBody 长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些文档来查找 UILocalNotificationalertBody 的最大长度,然后它才会在通知中心(横幅)或弹出式警报.

I'm looking for some documentation to find the maximum length of the alertBody of a UILocalNotification before it will get clipped in either the notification center (banner) or in a popup alert.

推荐答案

嗯,没那么容易.它还取决于字符宽度.我想你只需要腾出空间来支持不同的字符宽度.

Hmm it wasn't that easy. It also depends on the character widths. I suppose you just have to make room to support different character widths.

这篇关于Objective-C – UILocalNotification alertBody 长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆