-1

There is a way to do not show the UITableView in Kal, i.e., just the calendar (little squares) interface?

Thanks in advance!

reinaldoluckman
  • 6,317
  • 8
  • 42
  • 50

1 Answers1

2

You'll have to do this in code as Kal does not expose a way to do it natively. You'll have to edit the code in KalView.m.

Just comment out the below line in KalView.m addSubviewsToContentView: (line 179 in the GitHub repo I'm using).

[contentView addSubview:tableView];

This will result in a black box which fills the rest of the parent view. If you want a different color then you need to set a different color/background on the contentView or add your own UIView with the same frame as tableview. You could do something like this.

UIView *myView = [UIView alloc] initWithFrame:fullWidthAutomaticLayoutFrame;
myView.backgroundColor = [UIColor redColor];
[contentView addSubview:myView];

This will replace the tableView with a plane UIView with a red background.

lidsinker
  • 1,190
  • 1
  • 11
  • 20