« first day (2218 days earlier)      last day (1765 days later) » 

4:39 AM
Good Morning All
 
4:52 AM
Good Morning
 
Good morning
 
5:10 AM
@Shubhank hii
 
yo
 
how to select range between dates in FSCalendar swift
i tried this link
8
A: How to Select Range - FSCalendar in Swift?

Ahmad FAlthough FSCalendar does not directly supports range selection, it does allow multiple selection, which means that at some point you would be able to handle the range selection by your self. So, in the viewDidLoad() you have to make sure that you set the calendar allowsMultipleSelection property...

but i m getting error
in this line

let range = datesRange(from: firstDate!, to: date)
.
Cannot call value of non-function type '[Date]
@Shubhank
 
working on something
wait
 
ok bro
 
 
2 hours later…
7:36 AM
Hello all
did anyone face this
java.lang.SecurityException: Neither user 2000 nor current process has android.p
ermission.MANAGE_DEVICE_ADMINS.
 
8:25 AM
hi @DilipTiwari
 
@Shubhank hello bro
 
have you solved it ?
 
no bro
still looking for answer
 
where did you find datesRange method ?
 
i found only links
8
A: How to Select Range - FSCalendar in Swift?

Ahmad FAlthough FSCalendar does not directly supports range selection, it does allow multiple selection, which means that at some point you would be able to handle the range selection by your self. So, in the viewDidLoad() you have to make sure that you set the calendar allowsMultipleSelection property...

i tried same
 
8:49 AM
@Shubhank
 
 
1 hour later…
9:51 AM
sorry yaar
kaam :D
 
apne kaam hi karty rehna.. kisi r ka bhala na karna :P
 
10:06 AM
tum kis pe kr rhe ho aajkal
haha
hi @DilipTiwari
 
@Shubhank hii bro
 
I did not mentioned it in my answer for the purpose of making it shorter, all you have to do is to copy-paste it from this answer.
6
A: How to get an array of days between two dates in Swift?

Ahmad FYou could implement it like this: func datesRange(from: Date, to: Date) -> [Date] { // in case of the "from" date is more than "to" date, // it should returns an empty array: if from > to { return [Date]() } var tempDate = from var array = [tempDate] while tempDate < to...

this answer point
did you review and also can you share what error is there exactly.. is it on run time or compile time ?
 
compile time i m getting the error
@Shubhank
 
bas react native dekh raha
ajkal free
 
okay
 
10:13 AM
ok wait i m sharing the error
earlier i have used other URL answer so will i tell u error for that code or this one
@Shubhank
 
10:29 AM
okay
 
so tell me what to do
bro
 
error ?
 
ok let me share
 
10:52 AM
i tried i m getting error in let range = datesRange(from: firstDate!, to: date) error :- Cannot call value of non-function type '[Date]'
i m getting this error
 
11:05 AM
can you print date
see if its actually a date ?
 
i m getting compile error
 
@Shubhank how to select only one radio button
how to select only one radio button in recyclerview ?

Right now i took radiobutton and radio group in item.xml

but clicking on one radio button should mark checked for 1st row but clicking on 2nd row will uncheck 1st row radio button and will check only 2nd row radio button
@Shubhank how to achieve this ?
 
@DilipTiwari okay
can you comment date range
and print the date object
 
ok wait
 
11:21 AM
@Shubhank
 
when i commented this lines


let range = datesRange(from: firstDate!, to: date)

lastDate = range.last

for d in range {
calendar.select(d)
}

datesRange = range

print("datesRange contains: \(datesRange!)")

return
i m getting print as

datesRange contains: [2019-04-09 18:30:00 +0000]
 
12:18 PM
it worked ?
 
hi @TheTiger
 
 
3 hours later…
3:12 PM
@Shubhank no bro
 

« first day (2218 days earlier)      last day (1765 days later) »