【问题标题】:How to create a mimic of the Keynote for iPad sidebar?如何模仿 iPad 侧边栏的 Keynote?
【发布时间】:2012-05-03 09:31:28
【问题描述】:

我正在寻找在Keynote for iPad 中显示的侧边栏的表示。我怎样才能为 iOS 做到这一点?我想需要一个 UITableView,但不太确定是否保存当前屏幕?

已经看过一个示例项目,但没有太多帮助

【问题讨论】:

  • 您到底想要什么,请澄清您的问题?
  • 我只想要一个可以让你在演示文稿中切换不同幻灯片的侧边栏
  • ok 只显示你想要的一个链接检查。

标签: iphone objective-c ios xcode keynote


【解决方案1】:

使用此链接我认为这对您有帮助。首先尝试使用此代码。 您将尝试此代码在 nib 上添加一个滚动视图并在 viewdidload 上设置其内容大小

CGFloat x = 20;
for (int i = 0;i<[playerScores count];i++) {
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(x, 10, 60, 60)];
view.backgroundColor=[UIColor blueColor];
NSString *text = [NSString stringWithFormat:[playerScores objectAtIndex:i]];
[view setText:text];

[yardsScrollView addSubview:view];
[myLabel release];
x = x+125;
}

PlayersScore 是一个 NSMutable 数组,其中包含许多文本,例如您想要多少视图。

然后也检查一下。

https://github.com/bjhomer/HSImageSidebarView

【讨论】:

    猜你喜欢
    • 2012-01-18
    • 2021-10-18
    • 1970-01-01
    • 2018-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多