I'm working on a customized calendar. I used JTCalendar but it didn't serve my purpose. In this JTCalendar there is week view which shows current week - if I swipe the calendar the next week will be loaded. But my purpose is to show two weeks per page. If I swipe the calendar the next two weeks should be shown.
Well If I were you, I'd use CollectionView to display the entries and put a swipe gesture on the collectionView, to load next two weeks. I am assuming you know how to extract date from iOS.
Related
I am trying to make a calendar like a google calendar in which each square has some text (events of the day).
For this, I think I must put a UITableView inside each UICollectionViewCell, but I am not accomplishing it. I don’t have a sample code because I don’t even know how to start solving this.
We don't need a UITableView, we can do it just by using UICollectionView.
But as you are new to this I suggest using a library JTAppleCalender.
With this library, you can create a calendar in iOS very easily and it is highly customizable.
List of features:
Range selection - select dates in a range. The design is entirely up
to you.
Boundary dates - limit the calendar date range
Week/month mode - show 1 row of weekdays. Or 2, 3 or 6
Custom cells - make your day-cells look however you want, with any
functionality you want
Custom calendar view - make your calendar look however you want, with
what ever functionality you want
First Day of week - pick anyday to be first day of the week
Horizontal or vertical mode
Ability to add month headers in varying sizes/styles of your liking
Ability to scroll to any month by simply using the date
Ability to design your calendar however you want. You want it, you
build it.
Github link: https://github.com/patchthecode/JTAppleCalendar
If you think that you don't want to use any library this answer may help you: Custom calender View
Does anyone know a library I could use to make a slider menu like in the image below?
slider menu
Like the image, I need to display the days of the week
What I've tried:
(1) Using CAPSPageMenu repo on github but I came to realize this is inefficient for what I need. I only need one view controller, and will have hundreds of menu items (each menu item is a day of the week)
Other possibilities:
(1) Should I create a tableView, rotate it 90 degrees, and allow that to function as the horizontal scrollable menu?
(2) I found a tutorial online that lets me embed a collection view inside a tableView cell... But it seems rather cumbersome to make a cell for every day of the week.
That would be pretty easy to create using a UICollectionView. Do NOT try to rotate a table view. That path leads to madness.
You could use the shortWeekdaySymbols from NSCalendar to get the names of the days of the week.
Create a UIScrollView and put calendar date views inside it.
I have a problem : I would like to implement a list of calendars (as in Calendar app of ipad) where the user can view a list of months along with their days. The user can pick a particular day and jump to another view ("day" view).
I am trying to do it by using UICollectionView and putting some kind of calendar (like CKCalendar) inside the UICollectionViewCell.
Beside the fact that there is some problem in handling events from calendars, there is also a problem about loading of the view which can take even half a second for let's say 9 cells.
Any advice?
We have few calendar libraries like Kal, Tapko etc. but they all present each month separately.
Is there any way to show all months into continuous scrollView?
We can try but as calendar for say 10 years if contains tasks on everyday so its going to be pretty heavy data into UIScrollView.
So how can we solve this problem.
Main motive of asking question is to show whole calendar into continuous scrollView.
Thanks
You can use tableView. Just make a month per cell with reuseIdentifier. Other will be done behind the scenes.
I'm working on a couple of iOS apps that require the user to select a calendar date, and while the built-in date picker widget is all right, I'd much prefer if users could choose days from a calendar grid, similar to how it works in Hipmunk's iOS app. In that app, users are shown an infinite scroll view showing a grid of days, with each cell showing the month and day. The days of the week are shown in a persistent (i.e. non-scrolling) banner.
In addition to simply showing a calendar, this control should allow dates to be highlighted/selected. Better still, users should be able to select a whole range of dates by tapping on the start and end days' cells, at which the whole range of days should be highlighted.
Any ideas?
It's an "infinite" UIScrollView with various other views inside of it. Apple provides a demo infinite UIScrollview in their StreetScroller project.
You'll be allocating and initializing views for the various things you wanted displayed on each day, and probably reusing views at the top for the dates (as one scrolls off to the left you change the date and move it over to the right, reusing it the way a UITableView traditionally does).
Selection is a matter of changing visible state of the objects that back your views.