我正在尝试找到如何在状态栏上实现自定义消息,例如此处看到的 Evernote“正在下载更改...”消息。
这是一个私有 API 调用吗?有什么建议或指示吗?
我正在尝试找到如何在状态栏上实现自定义消息,例如此处看到的 Evernote“正在下载更改...”消息。
这是一个私有 API 调用吗?有什么建议或指示吗?
你应该看看MTStatusBarOverlay。
这看起来很像一个标签放在那里的视图顶部,然后是它下面的表格视图,应该不难做到......
UILabel *label=...
label.text=@"My Text"
//maybe justify here so its c enters
//set the rectangle bounds to what they need to be
//for the example there it would probably be (0,0,320,5) or something like that
//and the tableview w ould be at (0,5,320,455)
正如@sam 所指出的,MTStatusBarOverlay 是一个不错的选择,我目前正在我的应用程序中使用它。 但是,我刚刚找到了与原始海报(和我)一直在寻找的东西完全吻合的东西。我喜欢 GitHub 上所有在新应用程序中看到一些很酷的 UI 元素并为大众重新创建它的人……这就是其中之一。太棒了! Tweetbot-Like Alert Panels (Blog),存储库是Github 上的 MKInfoPanelDemo。