How can i disable scroll to previous month in JTAppCalendar?
up vote
1
down vote
favorite
1
Now Im using JTAppCalendar 6.0 version,
func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy MM dd"
let parameters = ConfigurationParameters(startDate: startDate,
endDate: endDate,
numberOfRows: 6,
calendar: testCalendar, // This parameter will be removed in version 6.0
generateInDates: .forAllMonths,
generateOutDates: .tillEndOfGrid,
firstDayOfWeek: .sunday)
return parameters
}
ios iphone swift calendar jtapplecalendar
add a comment |
up vote
1
down vote
favorite
1
Now Im using JTAppCalendar 6.0 version,
func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy MM dd"
let parameters = ConfigurationParameters(startDate: startDate,
endDate: endDate,
numberOfRows: 6,
calendar: testCalendar, // This parameter will be removed in version 6.0
generateInDates: .forAllMonths,
generateOutDates: .tillEndOfGrid,
firstDayOfWeek: .sunday)
return parameters
}
ios iphone swift calendar jtapplecalendar
What is your startDate? Just set it to the actual date (Date()) and you won't be able to scroll to previous month. But this depends on what you need... give us some more infos please.
– Teetz
Nov 8 at 11:04
func rangeOfPeriod(period: Calendar.Component) -> (Date, Date) { var startDate = Date() var interval : TimeInterval = 0 let _ = Calendar.current.dateInterval(of: period, start: &startDate, interval: &interval, for: self) let endDate = startDate.addingTimeInterval(interval - 1) return (startDate, endDate) }
– SHARON D ROSE BE
Nov 8 at 11:55
add a comment |
up vote
1
down vote
favorite
1
up vote
1
down vote
favorite
1
1
Now Im using JTAppCalendar 6.0 version,
func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy MM dd"
let parameters = ConfigurationParameters(startDate: startDate,
endDate: endDate,
numberOfRows: 6,
calendar: testCalendar, // This parameter will be removed in version 6.0
generateInDates: .forAllMonths,
generateOutDates: .tillEndOfGrid,
firstDayOfWeek: .sunday)
return parameters
}
ios iphone swift calendar jtapplecalendar
Now Im using JTAppCalendar 6.0 version,
func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy MM dd"
let parameters = ConfigurationParameters(startDate: startDate,
endDate: endDate,
numberOfRows: 6,
calendar: testCalendar, // This parameter will be removed in version 6.0
generateInDates: .forAllMonths,
generateOutDates: .tillEndOfGrid,
firstDayOfWeek: .sunday)
return parameters
}
ios iphone swift calendar jtapplecalendar
ios iphone swift calendar jtapplecalendar
edited Nov 8 at 12:53
Teetz
1,0621918
1,0621918
asked Nov 8 at 10:59
SHARON D ROSE BE
64
64
What is your startDate? Just set it to the actual date (Date()) and you won't be able to scroll to previous month. But this depends on what you need... give us some more infos please.
– Teetz
Nov 8 at 11:04
func rangeOfPeriod(period: Calendar.Component) -> (Date, Date) { var startDate = Date() var interval : TimeInterval = 0 let _ = Calendar.current.dateInterval(of: period, start: &startDate, interval: &interval, for: self) let endDate = startDate.addingTimeInterval(interval - 1) return (startDate, endDate) }
– SHARON D ROSE BE
Nov 8 at 11:55
add a comment |
What is your startDate? Just set it to the actual date (Date()) and you won't be able to scroll to previous month. But this depends on what you need... give us some more infos please.
– Teetz
Nov 8 at 11:04
func rangeOfPeriod(period: Calendar.Component) -> (Date, Date) { var startDate = Date() var interval : TimeInterval = 0 let _ = Calendar.current.dateInterval(of: period, start: &startDate, interval: &interval, for: self) let endDate = startDate.addingTimeInterval(interval - 1) return (startDate, endDate) }
– SHARON D ROSE BE
Nov 8 at 11:55
What is your startDate? Just set it to the actual date (Date()) and you won't be able to scroll to previous month. But this depends on what you need... give us some more infos please.
– Teetz
Nov 8 at 11:04
What is your startDate? Just set it to the actual date (Date()) and you won't be able to scroll to previous month. But this depends on what you need... give us some more infos please.
– Teetz
Nov 8 at 11:04
func rangeOfPeriod(period: Calendar.Component) -> (Date, Date) { var startDate = Date() var interval : TimeInterval = 0 let _ = Calendar.current.dateInterval(of: period, start: &startDate, interval: &interval, for: self) let endDate = startDate.addingTimeInterval(interval - 1) return (startDate, endDate) }
– SHARON D ROSE BE
Nov 8 at 11:55
func rangeOfPeriod(period: Calendar.Component) -> (Date, Date) { var startDate = Date() var interval : TimeInterval = 0 let _ = Calendar.current.dateInterval(of: period, start: &startDate, interval: &interval, for: self) let endDate = startDate.addingTimeInterval(interval - 1) return (startDate, endDate) }
– SHARON D ROSE BE
Nov 8 at 11:55
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206349%2fhow-can-i-disable-scroll-to-previous-month-in-jtappcalendar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What is your startDate? Just set it to the actual date (Date()) and you won't be able to scroll to previous month. But this depends on what you need... give us some more infos please.
– Teetz
Nov 8 at 11:04
func rangeOfPeriod(period: Calendar.Component) -> (Date, Date) { var startDate = Date() var interval : TimeInterval = 0 let _ = Calendar.current.dateInterval(of: period, start: &startDate, interval: &interval, for: self) let endDate = startDate.addingTimeInterval(interval - 1) return (startDate, endDate) }
– SHARON D ROSE BE
Nov 8 at 11:55