设置 Xcode 选项卡栏应用程序的初始屏幕图像
Xcode 新手,所以我会尝试正确解释我的需求。
我使用默认选项卡栏模板来创建应用程序。第一个选项卡设置有表格视图。我希望初始屏幕模仿启动屏幕,并且在用户单击选项卡栏上的按钮之前不显示表格视图。我希望标签栏没有按下(突出显示)的默认按钮,直到用户单击它。
因此,本质上,我希望在应用程序加载后获得初始视图以模仿启动屏幕视图,但底部有可用的选项卡栏,默认情况下不选择任何选项卡。
预先感谢您提供的任何帮助。
New to Xcode so I'll try to explain my needs correctly.
I've used the default tab bar template to create an app. The first tab is set up with a table view. I would like the initial screen to mimic the splash screen and not show the table view until the user clicks the button on the tab bar. I would like to have the tab bar not have a default button pressed (highlighted) until the user clicks it.
So, in essence, I would like to have my initial view after the app loads to mimic the splash screen view but with the tab bar available at the bottom with no tab selected by default.
Thanks in advance for any help provided.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题。我使用了以下代码。为了使其正常工作,必须将其包含在应用程序委托中。我也使用 OSX 和图像,但您可以使用 UIView 代替。请参阅 SDK 或 iPhone 的教程。代码如下:
.h class
.m class
I had the same problem. I used the following code. In order for it to work it must be included in an app delegate. I'm using OSX and an image as well but you can use a UIView instead. See tutorials by SDK or iPhone for this. Code below:
.h class
.m class