gpt4 book ai didi

objective-c - iPad 行为的 SplitViewController

转载 作者:行者123 更新时间:2023-11-29 04:35:53 25 4
gpt4 key购买 nike

我正在 iPad 应用程序中使用 UISplitViewController。目前,我发现两个问题:1.无法修改主视图的宽度2.我尝试在主视图中使用自定义单元格,但似乎无法调整单元格的宽度和高度。

您对标准 UISplitViewController 的两个问题有什么想法吗?

谢谢,迈克

最佳答案

1) 您无法更改详细 View 的大小。请检查以下链接,从该链接您将获得大量信息: Change the width of Master in UISplitViewController

2) 使用 heightForRowAtIndex 委托(delegate)方法。从该方法返回 60

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 60.0;
}

关于objective-c - iPad 行为的 SplitViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11071665/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com