Giter Site home page Giter Site logo

Comments (4)

klazuka avatar klazuka commented on September 28, 2024

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.

theonlyyam avatar theonlyyam commented on September 28, 2024

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.

theonlyyam avatar theonlyyam commented on September 28, 2024

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.

klazuka avatar klazuka commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.