【发布时间】:2010-12-09 22:35:57
【问题描述】:
所以问题是:如何手动滑动到 TTTabStrip 中的特定项目(将所选内容置于中心或使内容偏移)
@interface TTT : NSObject {
TTTabStrip* _slider;
}
@implementation TTT
_slider.selectedTabIndex = index;
//这将在 TTTabStrip 视图中选择项目,如果项目不在屏幕上,它将不会显示在 _slider 视图显示中。需要的是设置内容偏移到内部滚动视图。
所以主要的策略是将选中的item偏移到_slider view的中心。
【问题讨论】:
标签: iphone facebook scroll three20 horizontal-scrolling