Comments (19)
I also noticed that the time of day selected is always 22:00:00 I would rather have the time Italian ... how could I change this?
from fscalendar.
Hi there. I don't quite understand when the local notification should be scheduled. When the date is selected?
But I think your problem is only about the components of the date. NSDateComponents would be much helpful. Here is the sample code:
NSCalendar *calendar = [NSCalendar currentCalendar];
NSDateComponents *components = [calendar components:NSCalendarUnitYear|NSCalendarUnitMonth|NSCalendarUnitDay|NSCalendarUnitHour|NSCalendarUnitMinute|NSCalendarUnitSecond fromDate:_yourSelectedDate];
// or NSDateComponents *components = [calendar components:11111100 fromDate:_yourSelectedDate];
components.hour = 9;
components.minute = 0;
components.second = 0;
NSDate *dateYouNeed = [calendar dateFromComponents:components]; /// 2015-05-23 09:00:00
from fscalendar.
ah ok perfect you have been very kind .. one thing I wanted to ask you when the calendar shows the month names in Italian can not display case in names ... instead of writing in May or May I wrote only in May lowercase .. how can I solve this?
from fscalendar.
I don't know about words of Italian, and the month names are totally generated by the system. But probably you should try to change the headerDateFormat
of FSCalendar.
from fscalendar.
Hello then I set headerFormat in this way but continues to give me back
may 2015
instead of May 2015
... where am I doing wrong? because if the months are in English everything is correct? in Italian it provides me with this problem ...
This is how I implemented the header format:
NSString *format = [NSDateFormatter dateFormatFromTemplate:@"MMMM yyyy" options:0 locale: [NSLocale currentLocale]];
[self.calendarView setHeaderDateFormat:format];
from fscalendar.
Have you tried this?
_calendar.headerDateFormat = [NSDateFormatter dateFormatFromTemplate:@"MMMM yyyy" options:0 locale:[NSLocale localeWithLocaleIdentifier:@"it_IT"]];
from fscalendar.
Hello, I tried as I have advised you
_calendar.headerDateFormat = [NSDateFormatter dateFormatFromTemplate: @ "MMMM yyyy" options: 0 locale: [NSLocale localeWithLocaleIdentifier: @ "it_IT"]];
but the result is always the same ... keep me back in may 2015 instead of May 2015 ... I do not understand why the months in English display them properly but not Italian :(
from fscalendar.
Hi, I can't figure out the reason. But I am interest on what would there be if you change the local identifier to "zh_CN". I'd like to see whether it displays Chinese words rightly. You can send a screen shot here.
from fscalendar.
This is the China format from my simulator after implement your code
from fscalendar.
Sorry, haven't met that kinda problem before. Though it's not a good idea, you can assign [monthString capitalizedString] to each cell in FSCalendarHeader
.
from fscalendar.
I understand .. you think you can solve this problem in fscalendar?
from fscalendar.
Just speculation
from fscalendar.
Hello, forgive me, but I'm using the google translator to read your posts and I did not understand your last post ... Could you explain what did you mean? Sorry again for my bad English :)
from fscalendar.
Yes, I mean I 'guess' you can solve the problem in FSCalendar, but not sure about it.
from fscalendar.
ok while you explain to me exactly where I should make the change you suggested with [capitalize string]?
from fscalendar.
Yes, it means making the first letter uppercase.
from fscalendar.
yes yes, I understood what he meant, I can not understand where to go to change exactly in your code in fs calendar header
from fscalendar.
?
from fscalendar.
func calendar(calendar: FSCalendar!, hasEventForDate date: NSDate!) -> Bool {
return shouldShowEventDot
}
this method is deprecated.what we use to show colour Dot on all dates of array i.e.["2017-05-12","2017-12-05"].
from fscalendar.
Related Issues (20)
- Voice Over Enabled - Prevent announcing previous and next month names HOT 1
- iOS 17 doesn't renders the months correctly HOT 5
- Header background color issue
- How to add contentInset to scrollview / collectionview / calendar?
- Privacy Manifests HOT 12
- Unable to run the app - Command phase script execution failed due to non zero exist code.
- Attempted to modify the selection of an item in an out-of-bounds section (647) when there are only 647 sections. HOT 3
- App Crash when Timezone is America/Mazatlan HOT 5
- I want to yearly, weekly and daily calendar view HOT 1
- The last month's titlePlaceholderColor color is wrong
- 当进入下一页中断后,currentPage 设置不正确。when go to next page interrupt,currentPage not return right
- ContentInset to ScrollView / CollectionView / Calendar?
- events dot sometime show the hide days
- Please add PrivacyInfo.xcprivacy file.
- Event numbers show on hide dates
- Voice Over Navigation Issues
- Upload Privacy Policy HOT 1
- Some dates are not displayed and show HOT 2
- Month name hiding
- What does the warning mean next to the library name??
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 fscalendar.