klazuka / Kal

A calendar component for the iPhone (the UI is designed to match MobileCal)
http://www.thepolypeptides.com
1.22k stars 345 forks source link

Using Kal withing another UIViewController #50

Open ghost opened 12 years ago

ghost commented 12 years ago

Hi,

I am trying to use Kal within another UIViewController:

In my UIViewControler's 'viewDidLoad':

[self.view addSubview:kal.view];

However user events are not getting passed to other controls in the view.

The Apple "View Controller Programming Guide for iOS" warns that a view from a view controller should not be nested in the view of another view controller.

I also tried instantiating KalView directly and adding that as a sub view to my view controller, but I have the same problem with messages not getting to other controls in the view.

Is there a way to use Kal within another view controller? Can I use KalView without KalViewController?

Thanks, Tim

toddfreese commented 11 years ago

@timk00

Did you ever find a solution for this? I am having the same issue....

ghost commented 11 years ago

No I didn't. I ended up taking another approach.

-Tim

On Tue, Sep 25, 2012 at 6:20 PM, Todd Freese notifications@github.comwrote:

@timk00 https://github.com/timk00

Did you ever find a solution for this? I am having the same issue....

— Reply to this email directly or view it on GitHubhttps://github.com/klazuka/Kal/issues/50#issuecomment-8872438.