How can I make calendar view in Swift

Kira picture Kira · Apr 5, 2016 · Viewed 55.9k times · Source

I want to make simple calendar app in Swift 2, but I don't know where to start. I know there are some great calendar components available in cocopoads but docs for them are unfinished and as a beginner it is hard for me to read them and investigate code. I downloaded some popular cocoapods and played with them but that one functionalty I need is missing.

I want to make simple menstrual diary for a practice with dates and other stuff. I imagined this would be simple but after a day of investigating I thing it is rather hard. Maybe I'm wrong.

So how I make my own calendar view? Should I start with tableview and collection view for dates?

Can somebody give me some pointers, I'm lost at this point. Shoud I somehow learn to make my own view (I am a beginner so maybe this is too hard) or shoud I use some custom calendar?

Answer

FlowUI. SimpleUITesting.com picture FlowUI. SimpleUITesting.com · Apr 16, 2016

Apple has no calendar control, and many developers are lost in how to build one.

A good cocoapod that is well documented is this one. It was developed by myself. If you need help setting up things, I can provide that. Full tutorials to get you started located here.

If however, you want to know how it was built inside out so that you can build one yourself, then you can check out this link. It shows you in detail how it was built using a UICollectionView. Since you said you are new to programming, the first option is easier in my honest opinion for now.

But you're a coder, and at some point you should learn. So I suggest learning swift/objective-c until you become comfortable with it. Start out with simple projects like creating a table view etc. Learn how delegation works etc.

Once you are better at views, delegation, etc, then you will be more comfortable to create you own calendar control.