I have used UIDatePicker as native control and also used libraries mentioned over Stackoverflow and github. But i want to have a calendar view , horizontally scrolling days in a row like in image.
Please share your ideas/logic about what are possible solutions to achieve this functionality. Thanks
You can use library that is most closest to functionality you required and can customize its appearance as per you need.
https://github.com/CapitalGene/objc-CGCalendarView
Seems like a perfect time for a horizontal collection view. Just have some sort of calendar datasource and you are good to go. Should be able to use the flow layout and set the direction to horizontal and kapow, done.
Related
I have design the UI for the below screen as I am little bit confuse that what should have to use for the below screen. As you seen the on the screen below things:
1.Scrolling part of Images swap.
2.Again another Scrolling images Swap.
So here for the scrolling Images what should I use its Collection View for both or Pagecontrol for one and Collection view for other. Please suggest me.
Thanks and Appreciate for the help...
Use UITableView and in its cell use UICollectionCell so that you can scroll horizontally and vertically.
see Back image, this is how you can implemented output looked like.
As Tinu Dahiya pointed it correctly, You should use tableView and custom tableViewCells to achieve your UI design. This approach will also make your coding easy to handle dynamic contents which you might be fetching from server. For your reference you can directly use this control from cocoa controls. This control is ready made dish for you, you just have to implement your logic to achieve your functionality.
I develop an app for online shop that should has some design features that I don't know how to implement. Lurking for it second day, but no profit. I suggest, that it should be the simple CV with some custom cells for different needs (banners, products).
Problem - design has scrollable horizontally content in each section and I see no simple way to implement it instead of writing custom flow layout.
I tried to make a tableView with collection view in its rows, but its not working correctly.
May be you know some examples of implementation of same thing in swift or a good way to make such feature without flow layout?
Refer mention link May be help you from this link:- https://ashfurrow.com/blog/putting-a-uicollectionview-in-a-uitableviewcell-in-swift/
Today I tried to implement a vertical tabbar for iPad. I checked a lot of questions on Stackoverflow and other sites but couldn't find the appropriate answer. Here are what I found:
https://github.com/futuresimple/FSVerticalTabBarController
https://github.com/nst/SEVerticalTabBar
https://github.com/NOUSguide/NGTabBarController
In my opinion, the third component is great. However, I guess I'll have to customize a lot before I can use to create this following UI:
So do you know any components/libraries that match my UI? It would be great if anyone can suggest me a correct one. Thanks.
Try to use FSVerticalTabBarController. I have used it and it is easy to modify...
You can try this component IIViewDeckController. Its very light weight.
Usually it will be used for Stackview, left Menu kind of UI.
But you can do a small trick like below to achieve your design above.
Steps:
The component have left, right, top, bottom and center stack of controllers.
Use a UITableView on your LeftViewController to design your above UI.
Each index will act as a container of OneViewController.
Clicking one cell of your tableview will place the appropriate ViewController in the center controller of IIViewDeckViewController.
Its very easy, I guess you will like it. Just take some time to go through their examples.
Hope it will be useful
I translated futuresimple/FSVerticalTabBarController into Swift 5.
My repo is https://github.com/coyingcat/VerticalTabBar
Apple's doc Implementing a Container View Controller is great also
I'm trying to implement grid table as in iOS 7 Calendar app week view. What should i use for it? I tried to use simple UITableView but I don't know how to make it scroll vertically and horizontally at the same time. May be there are some controls for this?
To tackle this issue you should use a UICollectionView and create your own UICollectionViewLayout.
A brilliant article on custom UICollectionViewLayouts can be found here. In this article it specifically discussed a limited calendar layout which presents a week.
I need a control that closely represents the style of a Spreadsheet in a iOS application I am writing.
Would the UICollectionView provide this appearance?
All I need to do is display data so there would be no editing of the data needed.
Fritzables.
I was looking for something similar a couple of months ago. Ended up writing my own set of classes.
There were a few projects that I checked out on github, see if they are of any use -
https://github.com/macmoe/JDMTableGridView
https://github.com/yuch/GridTable
You maybe need a UIScrollView where you manage the "Cells" yourself.
Collection views are useful if you need your content to "flow" in some way which I think is not the case here.
You might consider a table view which includes vertical scrolling and row editing etc. but you still have to deal with horizontal offscreen content yourself.
With UIScrollView you have full flexibility to lay out your cells (like tiles) as desired in a fixed way. Panning and zooming is included for free.