带有提示和活动指示器的 UINavigationItem
我想知道 Apple 如何实现包含活动指示器的 UINavigationItem(请参见下面的附图),位于标题上方。 Apple 的私有 API 允许这样做吗?如果没有,如何在应用程序中重现它。
带有提示和活动指示器的 UINavigationItem http://img218.imageshack.us/img218/8819/ img0133g.png
谢谢!
I'm wondering how Apple implemented the UINavigationItem that contains an activity indicator (see attached image below), above the title. Is this Apple's private API that allows to do that? If not, how can it be reproduced in an application.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用以下代码得到了与您的屏幕截图完全相同的渲染:
PS:在实际应用程序中,我建议不要在代码中使用本地化字符串。 “Vérification”一词的 é 可能会给您带来麻烦。
看看方法 NSLocalizedString。
I got the exact same rendering than your screenshot with this code:
PS: In a real application, I would advise against having a localized string in code. The é of the word "Vérification" could cause you trouble.
Have a look at the method NSLocalizedString.