iphone : customize the calendar pick up date - iphone

My client would like that the user could pick up a date in an iphone app.
He wants that all the days of the month appear. Moreover he would like to switch to the next or previous month. How would it possible to do that ?
Moreover he would like that in the calendar some days of the month (for ex. the 1rst, the 9th and the 15th) appear in a different color.
If it's possible, how could this be done ?
Thank you in advance for your help
Fabio

Currently there isn't a calendar object exposed in the 3.x iPhone SDK.
You can however implement your own. One way would be to implement your own UIView object and handle the painting and reaction to touching manually. Another way would be to implement a calendar as an HTML page and either create a full web application or embed a UIWebView.
http://dblog.com.au/iphone-development/iphone-sdk-tutorial-build-your-very-own-web-browser/

Related

Custom DatePicker with just two components

I want to to use custom datePicker in my project. In Mode date it shows Month,Day and Year, in my case I don't need Year, I just want to display Month and day.
The API does not provide a way to do this. If you want to be able to, please file a report requesting this ability, and it'll hopefully get included in a future release of iOS.
In the meantime, you can make a pretty convincing replica yourself using a UIPickerView.
Im sorry but following the reference of the PickerView
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIDatePicker_Class/Reference/UIDatePicker.html#//apple_ref/doc/c_ref/UIDatePickerMode
It says that is not possible to do that, so your only option is to implemente yourself the delegate and the datasource, and create the pickerview with the data you need.

Iphone Calendar without marking etc just basic calendar

Could someone possibly show me how to do a basic calendar display that gets the date from date selected in a calendar? The Kal examples and code does way more than I need and is not set for the type of app im making. All I really need is a calendar with the dates, and then from there something to retrieve the date so i can pass it to my other functions. I feel like the UIDatePicker is trashy looking and would like the calendar view if its possible.
Hii Casey,
For simplest / Easy Calender Integration - use Tapku Library
https://github.com/devinross/tapkulibrary
Its simple than compared to Kal.
Tapku Calendar is a solid calendar implementation, I've used it in past iPhone projects. You can check out a blog post I wrote about it earlier this year here: http://developinginthedark.com/posts/iphone-tapku-calendar-markers
I've recently updated it to include example code showing it's integration into a Tab Bar application. Scroll down the bottom of the post to get that Tab Bar application code. If you run into any difficulties, let me know.

Iphone: Event Creation using Kal

Hi i am in the process of making a tab bar application where one of the tabs is a calendar..
To make the calendar i am using the Kal open source framework
(http://github.com/klazuka/Kal)
I am currently trying to add an event creation button to add events
(exactly like the "+" button on the original iphone calendar!)
Could someone please be kind enough to show how i should do this?
NOTE: In order to make my question as easy as possible, i am using the "NativeCal" example project that comes with the Kal framework, which does exactly what i want.

Remove the "Today" entry from UIDatePicker

When using a UIDatePicker in iOS SDK, there is always an entry "Today" at the current date.
That's useful in most cases, but where I need it, it's rather confusing.
Is there a way to:
a) disable the "today"-entry (use regular date instead), and have all entries look the same
or even better
b) disable the "today"-entry (use regular date instead), and color the next day in blue
Further more, the application is for private use only, it's not going to get distributed on the AppStore, which means I could use private APIs (I still would rather avoid them) and I don't need it to be backwards compatible. iOS 4 is fine.
I had a similar problem with the UIDatePicker not matching my requirements exactly (in my case I needed a datepicker without a year wheel). Having a look at the UIDatePicker reference, it doesn't look like you can disable the today entry, so you might be forced to do what I did.
I used a UIPickerView and re-implemented the date selection functionality I needed with that. There are a few things you will need to do to implement your custom date picker:
Implement a UIPickerViewDataSource to set up row titles, dimensions and row counts.
Implement a UIPickerViewDelegate to handle events from your custom picker.
Make sure you update your day wheel when the month wheel changes so you get appropriate days for each month. UIDatePicker does this pretty seamlessly. With limited time, I just reload the picker when the month changes so the day counts match up.

What is the name of iPhone Calendar table?

i want to know what is the iphone calendar table ? and how could implement it .
alt text http://patrickmd.net/blog/wp-content/uploads/2008/10/iphone_calendar_sshot.png
and i need some information about these questions :
does it way change the data of calendar ? and creat for example persian calendar ?
how could import events to the table ?
This component doesn't exist in the native library, if you want something like that you'll have to make it yourself. But it exist some projects already made. You can find one here:
Creating Native Calendar Like View.