Comments (12)
Thank you very much for updating the library!
For the month displayed on the cell, I did it in the setupCellBeforeDisplay of the CellView.
The xib is the same, only the label is being displayed on 2 lines instead of 1.
let cal: NSCalendar = NSCalendar.currentCalendar()
let comp: NSDateComponents = cal.components([.Day], fromDate: cellState.date)
if comp.day == 1 {
let monthFormatter = NSDateFormatter()
monthFormatter.dateFormat = "MMM"
let attributedString = NSMutableAttributedString()
attributedString.appendString(monthFormatter.stringFromDate(cellState.date), color: UIColor.darkGrayColor(), font: .buttonTextBoldFont())
attributedString.appendString("\n\(cellState.text)", color: UIColor.darkGrayColor(), font: .termsOfUseFont())
dayLabel.attributedText = attributedString
}
Hope it helps a bit ;)
from jtapplecalendar.
updated to version 3.0.0
Let me know if its still an issue. Or we can close this one.
from jtapplecalendar.
Looking into this to see if i understand your problem. one sec.
from jtapplecalendar.
Ok, i get what you're saying.
Selecting a date should also select its FollowingMonthWithinBoundary
or PreviousMonthWithinBoundary
counterpart?
from jtapplecalendar.
Yes that's exactly what I want to do with calendarView.selectDates()
Is it possible please?
from jtapplecalendar.
It will be possible after i put in the next update. Should be in by this Saturday worst case or by end of day today best case.
I had forgot to include that code actually. In making the calendar I cant think of every scenario unless you guys point it out.
One last request: How did you make the other dateCells to have the date only for one date and Month plus date for another cell?
Did you have all the configuration for the cell in a single xib file?
The reason I am asking you this is because I am currently working on an upgrade that should allow you to register multiple cells, which would reduce the clutter of a developer cramming trying to cram multiple configurations into an xib. So letting me know how you did it would be very beneficial to this project. Thanks.
from jtapplecalendar.
Thanks. I'll continue with the fix i mentioned above, and the update coming for this Saturday or end of day today (best case scenario)
from jtapplecalendar.
Hello!
Thank you for the update I'm going to check and I'll let you know!
from jtapplecalendar.
updated to version 3.0.1 to fix a small visual bug i missed.
Closing this issue. Reopen it if you are still experiencing problems.
from jtapplecalendar.
Hi again.
Thank you so much!! It's working great!
I only have one issue now, you commented "init(frame: CGRect)" and the only initializer left is "init?(coder aDecoder: NSCoder)".
This is good if you are working only with XIB or storyboards, but since in my team we are doing everything in code, this optional initializer is driving me crazy and require me to unwrap the variable everywhere in my code.
Could you add a simple init or uncomment the init(frame: CGRect) line 389 please? :)
Also do you want me to open a new issue for this?
I think it could be a nice improvement to make the lib 100% independent from xib.
Thank you for your time and your great lib!
from jtapplecalendar.
Ok. Open a new issue for this. I will look into it in the mean time.
from jtapplecalendar.
Oh that init! haha. I commented it out to look into something. I forgot to uncomment it.
Uncomment it from your end. I will do a patch release after i work out a visual bug i'm working on.
In the mean time, just open a new issue for this. thanks!
from jtapplecalendar.
Related Issues (20)
- Events Not Showing HOT 4
- Doesn
- Doesn't Compile in Xcode 15 HOT 4
- Stored properties cannot be marked unavailable with '@available' HOT 2
- Spacing between dates HOT 1
- Xcode15: Stored properties cannot be marked unavailable with '@available' HOT 3
- JTACMonthView.reloadData completion handler is not always invoked HOT 6
- Application got crashed :
- Application got crashed at JTACMonthLayout
- Application got crashed at JTACMonthLayout due to nil value HOT 11
- Calendar crashing on iOS 17 HOT 4
- Crashlytics Reports 100% Crash Rate in iOS 17 HOT 8
- Stored properties cannot be marked unavailable with '@available' error on Xcode 15 HOT 4
- Error - Stored properties cannot be marked unavailable with '@available' HOT 3
- Xcode 15 Error "Stored properties cannot be marked unavailable with '@available" HOT 4
- xCode 15 compatibility issue
- Only iOS 17 Crash - JTACMonthLayout - setupDataFromDelegate HOT 11
- I use Xcode Version 14.3.1 (14E300c). But the bug? issue has 'No such module 'JTAppleCalendar' HOT 3
- Additional line of days in previous month if use cellState.dateBelongsTo for cells hide or style HOT 5
- Stored properties cannot be marked unavailable with '@available' HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jtapplecalendar.