Comments (4)
You're on your own for adding iPad support. As of right now, I have no plans to add iPad support to Kal. I simply don't have the time, nor the need. Sorry.
from kal.
Hi Kal,
First of all, thanks a lot for your work, its a really nice job and i know it takes time.
I use your library on ipad and it works fine with some minor modification to apply.
I had to extend KalView and KalViewController to make it works properly. The reason is the size of the displayed calendar. It takes the full i pad size (1024x768) because of this line in the KalViewController.loadView method:
KalView *kalView = [[[KalView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] delegate:self logic:logic] autorelease];
So my own KalViewController, who extends yours, looks like this:
@synthesize title, myFrame; - (void)loadView{ if (!self.title){ self.title = myTitle; } MyKalView *kalView = [[[MyKalView alloc] initWithFrame:myFrame delegate:self logic:super.logic] autorelease]; self.view = kalView; } - (void)dealloc{ [super dealloc]; [title release]; } @end
The idea is simply to give the frame size to the KalView. With this solution, everythings work great, but it works only on simulator. To use it on the device i had to modify the visibility of the "logic" attribut to give it a getter method in your class....
So my question is: Is it possible to add this:
- in KalViewController.h @Property(nonatomic,readonly) KalLogic *logic;
- in KalViewController.m @synthesize logic;
in your source code? I can do it directly in the source on my local machine but i will break your licence and i will have trouble with my company because of license problems (even if MIT...).
You can notice that i have also remove the tableView because i don't use it. The advantage is to offer more flexibility to the developer, because on ipad it's very common to use splitView with calendar on left side and tableView on right side.
If you need help or idea for new project, don't hesitate to contact me i will be very happy to work with you.
from kal.
Another possibility is to have two method "loadView" with one of them who takes a CGRectMake in param to initialize correctly the KalView object. It's a better solution and with less modification....
from kal.
As I've mentioned before, I have no plans to add iPad support to Kal. The intent of the project was simply to clone Apple's month calendar on the iPhone. Since I don't have a need for iPad support, I cannot justify the effort nor would I be able to adequately assess its usefulness and correctness.
So, unless someone contributes both (1) a patch to add iPad support and (2) an example iPad app that exercises the new functionality, I will not be adding iPad support to Kal.
There is nothing in the MIT license preventing you from forking Kal.
from kal.
Related Issues (20)
- event adding into calendar
- Set bounds to Kal Calendar
- View Controller Scene HOT 3
- Change format date of title HOT 1
- How to localize the Day names ? HOT 1
- ios 10 HOT 2
- Weird Extra Days in Calendar for iPhone 6/7 and 6/7 Plus Not other Devices HOT 2
- Flux HOT 1
- Uf
- Uf
- Blog pi
- Highvpj
- Txt
- Txt
- iOS7 HOT 6
- Is there any other drop in solution instead of drag whole Kal project into my project?
- Deselecting a date?
- Deselecting a date?
- iOS7 Support - Date Header missing HOT 1
- Problem with 4-inches screens HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kal.