简体   繁体   English

如何在Kal日历中更改单元格高度

[英]How to change cell height in Kal calendar

I've set up Kal calendar in my project. 我在项目中设置了Kal日历。 I've added my custom cell from xib file. 我已经从xib文件添加了我的自定义单元格。 It's shown properly but can't change cell height in any way. 它显示正确,但不能以任何方式更改像元高度。 Tried in xib file, tried in "heightForRowAtIndexPath" but didn't worked at all. 在xib文件中尝试过,在“ heightForRowAtIndexPath”中尝试过,但是根本没有用。

Anything else I should try? 还有什么我应该尝试的?

You can change cell height in Kal calendar by modifying values of kTileSize mentioned in KalGridView . 您可以通过修改KalGridView中提到的kTileSize的值来更改Kal日历中的像元高度。

const CGSize kTileSize = { 46.f, 44.f };

Apart from that you can change kHeaderHeight to increase / decrease header titles also. 除此之外,您还可以更改kHeaderHeight来增加/减少标题标题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM