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?
You can call the calendar selectDate with today's date in the button action. like below: NSDate *today = [NSDate date]; [calendar setDate: today]; When you tap the button this will scroll to today with animation and select it.
In the Calendar app , you can choose which day of the week Calendar starts with, display week numbers, choose alternate calendars (for example, to display Chinese or Hebrew dates), override the automatic time zone, and more. Go to Settings > Calendar, then choose the settings and features you want.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With