[英]How to achieve calendar week view in swift iOS
How can I achieve week view of the calendar in my iOS app as shown below, ideally using Apple calendar components (if any) and also how can I retrieve the selected date.如何在我的 iOS 应用程序中实现日历的周视图,如下所示,理想情况下使用 Apple 日历组件(如果有)以及如何检索所选日期。
I have tried using both FSCalender and CVCalender plugins, without much success, as each was missing one element or the other.我曾尝试使用FSCalender和CVCalender插件,但都没有成功,因为每个插件都缺少一个元素。
The answer is, you lay out a bunch of views and set their contents.答案是,您布置一堆视图并设置它们的内容。 Perhaps use a collection view for the horizontal days.
也许在水平日使用集合视图。 Definitely use a table view for the times.
绝对使用表视图。 There's nothing in the public SDK to do it all for you.
公共 SDK 中没有任何东西可以为您完成所有工作。 You just put together a view hierarchy the normal way.
您只需以正常方式将视图层次结构放在一起。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.