Three20 TTLauncherView、TTLauncherItems 和 UITabBarController 的问题
我有一个 TTLauncherView
和一个 UITabBarController
我注意到 当我添加更多内容时,选项卡栏实际上与 TTLauncherItems
重叠 到视图。这是我想解决的一个问题。
当我向视图添加更多项目时,启动器会自动移动到 如果项目太多则转到下一页,这是正确的 功能。但是,如果我关闭应用程序并加载视图 再次是第二页、第三页和第四页上的按钮,等等 都坐在视图之外(如果这样的话,就经过标签栏控制器 任何意义)。有趣的是,一旦我移动任何一个 启动器项目到不同的位置 所有的项目 到第二页、第三页和第四页时会自动移到那里!
为什么它不自动将启动器项目移动到正确的位置 视图首次加载时的页面?这是一个没有人注意到的错误还是 我错过了什么吗?
我确实使用代码将项目保存到数据库表中,然后加载它们 在 viewDidLoad 中,但所有代码所做的就是添加 TTLauncherItems 到一个数组,我通过执行以下操作将其传递给 _launcherView.pages:
_launcherView.pages = [NSArray arrayWithObjects:array, nil];
然后我只需执行一个:
[self.view addSubview:_launcherView];
这工作正常,但上述行为真的让我烦恼。 Facebook 应用程序运行良好吗?我想知道他们是怎么做到的?呵呵;-)
I have a TTLauncherView
and a UITabBarController
and I'm noticing that
the tab bar is actually overlapping the TTLauncherItems
as I add more
to the view. This is one issue that I'd like to resolve.
When I add more items to the view the launcher automatically moves to
the next page if there are too many items, which is correct
functionality. However if I close the application and load the view
again the buttons that were on the second, third and fourth page, etc
are all sitting out of view (past the tab bar controller if that makes
any sense). The funny thing is that as soon as I move any of the
launcher items to a different position ALL of the items that are meant
to be on the second, third and fourth page move there automatically!
Why doesn't it automatically move the launcher items onto the correct
pages when the view first loads? Is this a bug that noone's noticed or
am I missing something?
I do use code to save the items to a database table and then load them
in viewDidLoad but all the code is doing is adding the TTLauncherItems
to an array, which I pass to _launcherView.pages by doing:
_launcherView.pages = [NSArray arrayWithObjects:array, nil];
Then I simply do a:
[self.view addSubview:_launcherView];
This works fine, but the above behavior is just really bugging me.
Works fine on the Facebook app? I wonder how they did that? hehe ;-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最终通过重新初始化
launcherView
解决了这个问题。Ended up fixing this by reinitializing the
launcherView
.