JTAppleCalendarCell not showing all views inside it

Created on 30 Apr 2017  ·  9Comments  ·  Source: patchthecode/JTAppleCalendar

Version : 7.0.1

My problem is that 2 of 4 Views that im putting inside the UICollectionViewCell are not appearing for some reason. It looks like the cell it's limiting the number of elements inside it. All the 4 Views are identical, but 2 of them are not appearing. I searched about it but didn't found anything that could help me. I tried even to overlay them, but even when i do it, they do not appear, Its just like the cell is bypassing them. Some pictures that may help to illustrate the situation

image
image
image

The pictures show that he's just showing the views from the middle. I thought that the problem could be space, however, as I sad, I tried to overlay them to see what happen and nothing. I've already made basic setup, as connecting them to my custom class. My custom class code:
`import UIKit
import JTAppleCalendar

class CustomCell: JTAppleCell {

@IBOutlet weak var dateLabel : UILabel!
@IBOutlet weak var selectedView : UIView!
public var cellDate : Date?

@IBOutlet weak var firstTrainingCircle: UIView!
@IBOutlet weak var secondTrainingCell: UIView!
@IBOutlet weak var thirdTrainingCell: UIView!
@IBOutlet weak var fourthTrainingCell: UIView!

}`

The day label, the View that display when the cell is selected and the middle Views are appearing as they should, so, why the green and red views are ignored? I really have no idea why, excuse me if It's a dumb question, but since Im trying to solve It since yesterday and could get It I ask to you guys.

This is not a bug. Works as expected.

All 9 comments

By any chance those 2 end views (left and right) are accidentally inside of the Red view?

No, i already verified it

Any chance you can send or show a sample app?
If not, i can talk more here -> https://gitter.im/patchthecode/JTAppleCalendar

Yes, i can. Actually im leaving at the moment. If you still on tomorrow i can chat with you. Tomorrow i will reproduce the error in a simple app and send it to you. Thank you for the help ;)

Awesome. Will await this.

Thank you for waiting. Im sending a simple app reproducing my problem.
ReproduceError.zip

Looks ugly, but i think the problem was in your constraints.

updated ReproduceError.zip

closing issue now.
If you got anymore questions. just ask away.
cheers 🍻

Worked perfectly ;). Thank you

Was this page helpful?
0 / 5 - 0 ratings