Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need to simulate events calendar #76

Open
ntgentil opened this issue Dec 26, 2012 · 1 comment
Open

I need to simulate events calendar #76

ntgentil opened this issue Dec 26, 2012 · 1 comment

Comments

@ntgentil
Copy link

HI,

Can you please give a sample implementation that how to create the Datasource protocol for kal source code, so that i can include like this

id source = [[MyKalDataSource alloc] init];
KalViewController *calendar = [[[KalViewController alloc] initWithDataSource:source] autorelease];
[self.navigationController pushViewController:calendar animated:YES];

please can you give implementation for MyKalDataSource protocol

Could someone help with this implementation? I need to simulate events.

@darkrainbow12
Copy link

Hi,

You can just follow the example of the "Holiday" which is in the calendar.
You create a class named "MyKalDatasource" which inherits from NSObject and which implements the "KalDataSource".
You implement the methods inherits from the KalDataSource.
You set the DataSource of the Kal with your own.

It's quite simple if you follow the example of Holiday (the SQL sources).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants