用 UIToolbar 替换 UINavigation?
我已经构建了一个基于导航的应用程序,但现在我已深入代码,我决定实际上最好只使用 UIToolbar (只需要模式视图,不需要向下钻取)。但是,摆脱导航内容并用工具栏替换它给我带来了各种各样的悲伤......
有没有人曾经这样做过,并且可能有一两个指针?或者甚至知道某个地方链接的演练?
谢谢!
I've built a Navigation-based app, but now that I'm knee-deep in the code, I've decided it would actually be best to have just a UIToolbar instead (only need modal views, not drill-downs). But extricating the Navigation stuff and replacing it with a Toolbar is causing me all sorts of grief...
Has anyone ever done this, and maybe has a pointer or two? Or even know of a walkthrough linked somewhere?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
硬着头皮重写。任何指南都不足以满足您的具体情况。
百分之九十九的是,如果我意识到自己犯了一个巨大的设计错误并且不改变它,我最终会比改变更后悔。由于您将再次从头开始复制/开始,因此如果您需要中途放弃,您可以随时恢复!
说真的,因为这是一个当前的应用程序,仍然(相对)处于其开发生命的早期阶段,并且在你的脑海中都是新鲜的,所以它很可能很快就会被重做。另外,听起来这可能是您的第一个 iPhone 应用程序,因此您可能每天都会学习新东西 - 现在您也可以将所有新东西放入此应用程序中。最后,想象一下如果您再投入 200 个小时,然后决定必须重写,所涉及的工作量!
希望这对您有所帮助,我敢打赌您会在不到一天的时间内重写它!
Bite the bullet and rewrite. Any guides out there will not be specific enough to your situation.
99 times out of a hundred if I realise I've made a massive design mistake and don't change it, I end up regretting it more than if I do. And since you'll take a copy/start from scratch again, you can always revert if you need to give up half way through!
Seriously, because this is a current app that is still (relatively) early in its development life and is all fresh in your mind it will very likely be quick to re-do. Also, sounds like this might be one of your first iPhone apps so you're likely learning new stuff every day - now you get to put all the new stuff in this app too. And finally, just imagine the work involved if you put another 200 hours into this as it is and then decided you had to rewrite!!
Hope that helps, and I bet you get it rewritten in less than a day!