Im building an app, and I need a feature like on the image i attached. Does anyone of you, know of a library that can create something similar, or maybe someone can give me a hint how to create it myself :)
What I need is a horizontal calendar, with a tableview underneath.. I need to be able to swipe left or right in the tableview, and then the date has to change, wither a day forward or a day backwards, unless its on the day of today. Then its not possible to go a day back. Hope it makes sense!
Best regards
Related
I want to create something like this(refer image)
as you can see in above image, here column represents date and row representing time. User can vertically scroll for time and horizontally for date. blank spaces will be clickable.
I have searched for similar kind of UI, but I don't know what to search. any thoughts to implement this custom UI will be a great help.
Thank you.
Here is the idea, if you want to implement a slightly simple design as displayed in your screenshot.
You can divide the complete UI in 3 small parts and design it,
To display "February 2017", you can addd a label.
TO display DATE, You can use CollectionView, which will have direction of Horizontal and set the content and create a logic by which you can display 31 for Month or week wise as per your need.
You want to display Time which scroll vertical, then to display that you can use Tableview in which time will be displayed.
Above is the just idea by which you can create a simple UI, in which
as per DATE selection, Time will be displayed in tableview.
What you are looking for is a week view which is similar like this component Calendar-UI. You can take it as a reference or modify in it as per your need.
You can customize the UICollectionView by subclassing UICollectionViewLayout to let UICollectionView behave the way you want.
Check this library, it may be helpful to you. Here is the github link.
This site is awesome.
So I need to create something that looks like this...
It needs to be continuous with a fixed number of UICollectionViewCells (8). It also needs to paginate really well and center the cell (as shown) when the user swipes left or right.
PROBLEM: 1. The pagination provided with UICollectionView doesn't center the view on the cell being shown. 2. I'm having a hard time finding the proper way to get the continuous effect.
Any help on this would be much appreciated. This is a tough one!
I have seen some Apps on my Watch with the "scroll up to refresh" feature, like the email app. If you scroll up when you are on the top, the content gets refreshed and a little wheel is shown on the top.
How is that done? I can't find anything in the documentation
I´ve only seen this on Apple-apps. So i guess they have a wider API. Anyway you can do a workaround. When you initialise your table you could use the
- scrollToRowAtIndex:
And specify row 1. This will now be your first row for your data. The row at index 0 will be a row with a button that will refresh the table. When you tap row 0 you could insert an WKInterfaceImage with an animation (or perhaps look for a way to do the spinning wheel yourself).
This is not the optimal way, but if you play around a little bit with it you can make it work and make it look good. Hope this helps you.
I'm building an iOS app that would benefit from having the time from say 07:00 to 16:00 (specified by user) on the left of a UITableViewCell like this:
What would be the best approach for such a behaviour, including the possibility of a colored rectangle over several cells? I imagine you would design a custom cell but it's the colored rectangle (appointments in the iOS calendar) logic that I'm not sure how to go about as it stretches over several cells.
Could someone point me in the right direction, give any links or something to kick me off? Just an explanation of how one would go about this is helpful.
Thanks alot!
Erik
I think you need to look into UICollectionView, with provides powerful layout apis for this kind of problem than UITableView.
There are a lot to dig into though.
Some of these materials maybe helpful to you:
http://www.objc.io/issue-3/collection-view-layouts.html
https://github.com/erichoracek/MSCollectionViewCalendarLayout
I want to implement a timeline view. In which I need to have months (with dates) on top and many rows below that with a bar of time period. (very similar to this image)
Please tell me, where should I start, like subclassing UIScrollView or using drawRect. And whether is it possible to use UITableViewCell for each row? Please show me the right direction.
thank you!
You may try this one, it will help you :-
https://www.cocoacontrols.com/controls/multicolumntableviewforios