I am having an issue with FSCalendar.
In my project i have a tableview having a different type of cell one of them having a calendar which is FScalendar.
Now I want to show dates on the calendar and dates are coming from another UITableviewCell but its not working properly.
first time it works shows date but after that it disappears.
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
For my application I have to develop a view that displays the events of a calendar in a Week View, just like the landscape view of the iPhone calendar app.
I was thinking about using a CollectionView but I don't know if is possible to have the content of the cell continuing in another cell, in the case of an event covering multiple hours, like this example, in which the description can continue trough multiple cells:
Is there any plugin I can use to create this view?
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.
I am trying to learn ios development. I want to simulate the same behavior as I get when I Tap the "Starts" row in iphone calendar app
Same row has the column name "Starts" with default value of Datepicker.date
When I tap on the row, it expands (pushes next row down) and brings up date picker
Right now, I have a text field with its input set to date picker value.
UIDatePicker *datePicker = [[UIDatePicker alloc]init];
[datePicker setDate:[NSDate date]];
[self.timeTextField setInputView:datePicker];
In my case date picker, comes bottom up.
Please help
As written, your question is too broad, and too much of a "spoon-feed me a complete solution to my problem" question. You're much more likely to get help if you try specific things and ask questions about the problems you have in implementing those things.
Break it down into parts. What are the sub-parts, and what are you able to do on your own? Have you created a date picker and set it to a default date yet?
Are you looking for help with inserting a date picker as a new cell in a table view immediately below the "starts" cell? are you looking for help with making changes to the picker update the "starts" date cell immediately?
Again, break it into parts and tackle each part separately. First, simply create a date picker on it's own window and learn how to use it. Then add a label under the date picker, set yourself up as the picker's delegate, and display the date the user selects in the picker into the label.
Then figure out how to set a date picker to a specific date, and/or set the earliest/latest date the picker will accept.
Now figure out how to make a table view respond to taps on a row (try didSelectRowAtIndexPath). Then look at the animated methods for inserting a new row into a table view.
If you have trouble, post back with specific questions on the trouble you are having.
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.