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 > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 10-20-2011, 09:12 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 5
timeview is on a distinguished road
Default View with two tables and Nav

I have a BothViewController that get push on Nav from TopView. Now BothViewController has two Tables each with their own TableViewController(_1. _2). Now TableViewContoller_2 is being used to View EventKit Cal list. I am using 'SimpleEKDemo' code as base for this. Now I able to Fetch data from default Cal but not able to push detailview view onto stack (or add working Add button). So the short version of my problem is I need two tables on one view and one of the tables need to show the 'SimpleEKDemo' . Any feedback would be a big help.

Thanks

Last edited by timeview; 10-20-2011 at 09:16 AM.
timeview is offline   Reply With Quote
Old 10-20-2011, 09:50 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 113
jonusx is on a distinguished road
Default

Are you using two table views inside one uitableviewcontroller subclass or inside a uiviewcontroller?
__________________
What do you have to share? Share and view pics Oneshare

Play Magic: The Gathering? Try The Sylvan Archives!

Warhammer 40k your thing? W40k Manager is your thing.

Like karaoke? Try iSing Karaoke Locator
jonusx is offline   Reply With Quote
Old 10-20-2011, 10:16 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 5
timeview is on a distinguished road
Default

Quote:
Originally Posted by jonusx View Post
Are you using two table views inside one uitableviewcontroller subclass or inside a uiviewcontroller?
I using UIViewController with two UITableViewController within.
timeview is offline   Reply With Quote
Old 10-20-2011, 10:32 PM   #4 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 113
jonusx is on a distinguished road
Default

If the root view is inside a nav controller, you should be able to use
Code:
[self.navigationController pushViewController:<cont> animated:YES];
__________________
What do you have to share? Share and view pics Oneshare

Play Magic: The Gathering? Try The Sylvan Archives!

Warhammer 40k your thing? W40k Manager is your thing.

Like karaoke? Try iSing Karaoke Locator
jonusx is offline   Reply With Quote
Old 10-23-2011, 11:54 AM   #5 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 5
timeview is on a distinguished road
Default

I am able to get both tables working fine - I have two tables in one view working but on one table (EKview stuff) I trying to push an subview (based on SimpleEKdemo - calendar apple code) but not getting detail view (It is being called). So I guess my real problem is I am still trying to use Navigation controller to push views on top of each other but with one view being a complex multi-Table view. I get data source ok but can't push EKEvent view on top of this dual table view screen.
timeview is offline   Reply With Quote
Old 10-30-2011, 06:36 PM   #6 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,002
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by timeview View Post
I am able to get both tables working fine - I have two tables in one view working but on one table (EKview stuff) I trying to push an subview (based on SimpleEKdemo - calendar apple code) but not getting detail view (It is being called). So I guess my real problem is I am still trying to use Navigation controller to push views on top of each other but with one view being a complex multi-Table view. I get data source ok but can't push EKEvent view on top of this dual table view screen.
I would advise against trying to use two separate table view controllers to manage table views on the same screen. Have both table views be managed by the same view controller.

You can set it up 1 of 2 ways:
  • Have the view controller serve as delegate and data source for both table views, and check the tableView parameter on the delegate/data source method calls to figure out which table view is calling. With this approach, each table view delegate/data source method would start with an IF statement that decides which table view it's serving.
  • Set up separate a TableViewDataSource class that has methods to respond to data source and delegate methods from your table views. Create a TableViewDataSource object for teach table view and make it the delegate and data source of each table view. In this scenario, the view controller will manage the pair of TableViewDataSource objects, which will serve up data to the table views.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C 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: 380
10 members and 370 guests
bignoggins, djqbert, epaga, hussain1982, jcdevelopments, LunarMoon, markolo, omagod, pinacate, skog
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,644
Threads: 94,110
Posts: 402,860
Top Poster: BrianSlick (7,990)
Welcome to our newest member, djqbert
Powered by vBadvanced CMPS v3.1.0

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