Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-28-2011, 04:29 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 21
geestring is on a distinguished road
Default Kal calendar crashes if I don't push onto nav stack

The Kal Calendar is a controller that attempts to duplicate the functionality of the iphone's native calendar: https://github.com/klazuka/Kal

The examples of Kal calendar controller all initialize the controller in the app delegate and push on a navigationController. I tried it and it does indeed work, however I need my calendar to be the rootController for one of my Tabbar items, which was added in the main nib.

What I tried was adding a UIViewController class as the root class in my nib for the item, then initializing the calendar in the view controller:

KalViewController *calendar = [[KalViewController alloc] init];
[self.view addSubview:calendar];
[calendar release];


It shows up but crashes if I touch the months,days etc...

Alternatively, I made a class based on KalViewController and made that the root class for my tab bar item. But that crashes immediately without displaying.



How am I going to load my calendar without a nav stack?

Thanks
geestring is offline   Reply With Quote
Old 08-29-2011, 01:56 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

you need to put directly KalViewController as root view controller, not a UIViewController and then alloc\init a KalViewController adding its view as subview of your UIViewController
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 391
5 members and 386 guests
JackReidy, jeroenkeij, Sami Gh, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,671
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JackReidy
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:48 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0