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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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-31-2009, 05:22 PM   #301 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 78
Default UORW

Quote:
Originally Posted by blah View Post
Wow, awesome link. I'm finding their example projects the most useful code examples I've found yet. Thanks a million for that link, It just shaved a day or dozen off my UI making learning curve.
Yay!

Quote:
As feedback to the whole (to IB or not to IB) debate, the stanford class examples I've gone through so far make very little us of IB in favor of manually declaring their views and controllers in the application delegate.
YES. In fact, at one point in the lecture videos, I think someone asks the instructors "to IB or not to IB" and they do in fact recommend it, but for very basic UIs, it can EASILY be overkill. When you start to position things and wire stuff up and get more detailed, IB becomes a big help since it follows the HIG for things like spacing, placement, etc.

Very glad to hear the cookbook is matching your style! Everyone's different, so you have to go with what works. It really is a terrific book.
jdandrea is offline   Reply With Quote
Old 08-31-2009, 05:26 PM   #302 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 218
Default

@hm50

This is exactly what I am trying to do. My table nav loads in a tab bar with 5 tabs linked to 5 nibs but I cannot figure out how to populate those nibs/tabs with the data for the row selected. The title for the tabs comes over from the table with tabViewController.title = ... indexPath.row] valueForKey... etc

Any luck, anyone, with table to tab?

ps Let me know of you want the code to go from table to tabs (but it won't know where you came from - except the title!)...
malaki1974 is offline   Reply With Quote
Old 09-01-2009, 06:38 PM   #303 (permalink)
Indie Dev
 
hm50's Avatar
 
Join Date: May 2009
Location: South Bend, Indiana
Posts: 162
Post

Something like this?

Code:
	DetailViewController *dvController = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];

	dvController.varName = varName;

	[self.navigationController pushViewController:dvController animated:YES];
Would be happy to see how you achieved the tab part..
__________________
iPhone 3G

Support Indie Devs!! (that goes for newbs too!)

Apps:
Spell Blocks
See Read Say
iStatus
myVIP
myMVP
hm50 is offline   Reply With Quote
Old 09-01-2009, 06:50 PM   #304 (permalink)
Indie Dev
 
hm50's Avatar
 
Join Date: May 2009
Location: South Bend, Indiana
Posts: 162
Post

Quote:
Originally Posted by jdandrea View Post
Ha! Interesting. So you're in a Nav controller, but you want the Tab Bar to show up after the fact, not before.

It's interesting that you mention this because some folks, when starting out to go the usual direction (tab bar controller, then a nav or view controller in each tab bar item), sometimes end up with what you're looking for ... by mistake!

I've never set out to do this, so I'm going to wing it here a bit. Bear with me ...

So ... what if we set up a new view controller (that you'd push onto the nav controller stack), and that controlled a view that contained a tab bar controller? So far, so good.

Then, for each of those tabs, you would likely not add nav controllers, but just basic view controllers (so that the nav at the top stays put and doesn't change). Each of those VC's views should have autoresizingMask set such that they resize gracefully. (You have the nav bar at the top, so the size isn't full-height anymore, else you hide the nav bar, "... and that would make folks sad.")

You probably don't need to worry about hidesBottomBarWhenPushed on the view controller, since you don't want to hide it before a new VC appears, you want to show it as part of the new VC appearing.

I hope this helps draw a bead on things! Keep us posted.

That is exactly what I am looking for. I am essentially on that path, just not there yet. (I had to stop working on that project while I fixed an Apple rejection...lol)
I hear your concept and it sounds very promising, now I just need to sit down and try to figure out the code.

I'll start now...Ha

PS. I really do believe that it WOULD make folks sad....lmao!!!
__________________
iPhone 3G

Support Indie Devs!! (that goes for newbs too!)

Apps:
Spell Blocks
See Read Say
iStatus
myVIP
myMVP
hm50 is offline   Reply With Quote
Old 10-11-2009, 05:32 PM   #305 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 12
Default

Hello,

I am looking for kinda the same thing so did you anyone ever get this sorted?

Thanks :-)

Quote:
Originally Posted by hm50 View Post
That is exactly what I am looking for. I am essentially on that path, just not there yet. (I had to stop working on that project while I fixed an Apple rejection...lol)
I hear your concept and it sounds very promising, now I just need to sit down and try to figure out the code.

I'll start now...Ha

PS. I really do believe that it WOULD make folks sad....lmao!!!
stubbsjoe is offline   Reply With Quote
Old 10-16-2009, 07:20 AM   #306 (permalink)
Umesh Jagtap
 
ujagtap's Avatar
 
Join Date: Sep 2009
Location: Pune, India
Posts: 35
Default

Quote:
Originally Posted by DevTeamOfOne View Post
Code:
@interface AppDelegate : NSObject <UIApplicationDelegate> {
    UIWindow *window;
    UITabBarController *tabBarController;
    MyTableViewController *myTableViewController;
    MySecondTableViewController *mySecondTableViewController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) UITabBarController *tabBarController;
@property (nonatomic, retain) MyTableViewController *myTableViewController;
@property (nonatomic, retain) MySecondTableViewController *mySecondTableViewController;

@end




@implementation AppDelegate

@synthesize window, myTableViewController, mySecondTableViewController, tabBarController;

- (void)applicationDidFinishLaunching:(UIApplication *)application {

       tabBarController = [[UITabBarController alloc] init];          // creates your tab bar so you can add everything else to it

       myTableViewController = [[MyTableViewController alloc] init];               // creates your table view - this should be a UIViewController with a table view in it, or UITableViewController
       UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:myTableViewController] autorelease];
       [myTableViewController release];                                                              // creates your table view's navigation controller, then adds the view controller you made. Note I then let go of the view controller as the navigation controller now holds onto it for me. This saves memory.

       mySecondTableViewController = [[MySecondTableViewController alloc] init];   
       UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:mySecondTableViewController] autorelease];
       [mySecondTableViewController release];                                                    // does exactly the same as the first round, but for your second tab at the bottom of the bar.

       tabBarController.viewControllers = [NSArray arrayWithObjects:tableNavController, table2NavController, nil]; add both of your navigation controllers to the tab bar. You can put as many controllers on as you like, but they will turn into the more button like in the iPod program.

       [window addSubview:tabBarController.view];                                              // adds the tab bar's view property to the window
       [window makeKeyAndVisible];                                                                  // makes the window visible
}

- (void)dealloc {
       [tabBarController release];
       [window release];
       [super dealloc];
}                                           // lets go of everything else, thats so your program doesn't create any leaks of memory.

@end

I just typed up this quick App Delegate to show you how to do it. Yes, you do have rights to use whatever part of it you wish, and yes, you can ask any questions you like.

Please do note:
a ) I release the table views because they have been retained by the Navigation Controllers. Thus, I have doubled up and am taking double the memory. Once you have a nav controller holding your view, drop it. This saves memory. These nav controllers are set to drop automattically with their autorelease so there is no leak issue.

b ) if you need to add only one item to your tabBar for some strange reason, or just to test, change "arrayWithObjects: blah, blah2, nil" to "arrayWithObject: blah" and drop the nil.

Does this help you???
Hi DevTeamOfOne,

I am new to iPhone development. This thread really help me to create tabBarController and NavigationController in it. Is it possible to change tabBarController's color to Default color. Please help.

Thanks in advance!!
ujagtap is offline   Reply With Quote
Old 10-27-2009, 11:55 PM   #307 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 11
Default Help pleAse

I created a tab bar app with a table view along with 3 titles(BOOKS) in the table view. I also loaded a Detail View when you tap one of the 3 Titles. Here is the question how can I load a separate Detail/view for EACH Title(Book) I want to tap the BOOK/Title in Table View and open the "Details" for each book/title and have Different details inclosed in EACH View.

Any Help would be Great thanks in advance.
cladavidson is offline   Reply With Quote
Old 10-28-2009, 12:56 AM   #308 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 117
Default

Have a check of which row was clicked. For example if,

TableView
Row 1 - Book1
Row 2 - Book2
Row 3 - Book3

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if( indexPath.row == 1 )
{
	 Book1 *xBook1 = [[Book1 alloc] initWithNibName:@"Book1" bundle:nil];
	 [self.navigationController pushViewController:xBook1 animated:YES];
	 [xBook1 release];
}
else if( indexPath.row == 2 )
{
	 Book2 *xBook2 = [[Book2 alloc] initWithNibName:@"Book2" bundle:nil];
	 [self.navigationController pushViewController:xBook2 animated:YES];
	 [xBook2 release];
}
else if( indexPath.row == 3 )
{
	 Book3 *xBook3 = [[Book3 alloc] initWithNibName:@"Book3" bundle:nil];
	 [self.navigationController pushViewController:xBook3 animated:YES];
	 [xBook3 release];
}
}
This is the concept.
__________________
Praise be to God
Brix is offline   Reply With Quote
Old 10-28-2009, 01:36 AM   #309 (permalink)
Umesh Jagtap
 
ujagtap's Avatar
 
Join Date: Sep 2009
Location: Pune, India
Posts: 35
Default

Hi,

I am able to create tab bar and navigation controller in it on MainWindow.xib. But my application's main screen is login screen. How will i insert login screen before MainWindow? Or how will i call my tab bar after login screen.

Actually i inserted another xib for login screen i.e. "LoginViewController" and called this from MainWindow using appdelegate, Also inserted another xib for creating TabBar-Navigation. But this doesent work.

//Calling TabBar-Navigation controller from LoginViewController
- (IBAction)changeGreetingid)sender {
UIViewController *targetViewController;

NSMutableDictionary *newItemDict = [NSMutableDictionary dictionaryWithCapacity:3];

targetViewController = [[MainAppLeadComm alloc] initWithNibName:@"MainAppLeadComm" bundle:nil];

[newItemDict setObject:targetViewController forKey:kViewControllerKey];
[targetViewController release];


[[self navigationController] pushViewController:targetViewController animated:YES];

}

//Creating tab bar in TabBar-Navigation controller.
- (void)applicationDidFinishLaunchingUIApplication *)application {
tabBarController = [[UITabBarController alloc] init];

applicationViewController = [[ApplicationViewController alloc] init];

UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:applicationViewControll er] autorelease];
[applicationViewController release];

leadSummaryViewController = [[LeadSummaryViewController alloc] init];
UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:leadSummaryViewControll er] autorelease];
[leadSummaryViewController release];

commissionViewController = [[CommissionViewController alloc] init];
UINavigationController *table3NavController = [[[UINavigationController alloc] initWithRootViewController:commissionViewControlle r] autorelease];
[commissionViewController release];

tabBarController.viewControllers = [NSArray arrayWithObjects:tableNavController, table2NavController, table3NavController, nil];
[window addSubview:tabBarController.view];

[window makeKeyAndVisible];
}


Please help, Thanks.
ujagtap is offline   Reply With Quote
Old 10-28-2009, 01:42 AM   #310 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 117
Default

Like this?
Attached Files
File Type: zip SplashScreen.zip (17.5 KB, 190 views)
__________________
Praise be to God
Brix is offline   Reply With Quote
Old 10-28-2009, 02:02 AM   #311 (permalink)
Umesh Jagtap
 
ujagtap's Avatar
 
Join Date: Sep 2009
Location: Pune, India
Posts: 35
Default

Yes! Thanks Brix.
Actually i am new to iPhone development. I will study this application and try to make changes in my application, because i added separate xib's for each screen.

In my application i didnt understand why "MainAppLeadComm" is not calling. I have put breakpoints in "- (void)applicationDidFinishLaunchingUIApplication *)application " but control is not going in this function. Only "dealloc" of "MainAppLeadComm" is called and login screen remain as it is on screen.
ujagtap is offline   Reply With Quote
Old 10-28-2009, 09:34 PM   #312 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 15
Default

Quote:
Originally Posted by Brix View Post
Like this?

Brix

This helps so much. I have been struggling with something close to this. Maybe, you can answer my question:

I have been trying to build something similar but with a Navigation Controller rather than a Tab Controller? I would think it can be done, but have not tried it yet. Is there any downside to front-loading the multiple controllers in the app delegate?

Last edited by Remy; 10-28-2009 at 09:39 PM.
Remy is offline   Reply With Quote
Old 10-29-2009, 12:42 AM   #313 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 15
Default

Quote:
Originally Posted by Remy View Post
Brix

This helps so much. I have been struggling with something close to this. Maybe, you can answer my question:

I have been trying to build something similar but with a Navigation Controller rather than a Tab Controller? I would think it can be done, but have not tried it yet. Is there any downside to front-loading the multiple controllers in the app delegate?
I just tried it and it worked.
Remy is offline   Reply With Quote
Old 10-29-2009, 12:47 AM   #314 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 15
Default

Quote:
Originally Posted by Remy View Post
I just tried it and it worked.

Does anyone know the answer to my other question:

Is there a downside to front loading controllers in the app delegate?
Remy is offline   Reply With Quote
Old 10-30-2009, 07:57 AM   #315 (permalink)
Umesh Jagtap
 
ujagtap's Avatar
 
Join Date: Sep 2009
Location: Pune, India
Posts: 35
Default

Quote:
Originally Posted by Brix View Post
Like this?
Hi Brix,

Thanks for your reply. Now my application works like following,
1. login screen view controller
2. then tab bar view controller in which i have added navigation controller and table views.
Now i want to come back to login screen from any of the navigation tab.

My appDelegate's "applicationDidFinishLaunching" function looks like.

Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{	
        //Displays Login screen view
	[window addSubview:xView.view];

        //Displays Tab bar containing navigation bar after login successful
	tabBarController = [[UITabBarController alloc] init];          
	
	applicationViewController = [[ApplicationViewController alloc] init];               
	UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:applicationViewController] autorelease];
	[applicationViewController release];                                                              	
	leadSummaryViewController = [[LeadSummaryViewController alloc] init];   
	UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:leadSummaryViewController] autorelease];
	[leadSummaryViewController release];                                                    
	
	commissionViewController = [[CommissionViewController alloc] init];   
	UINavigationController *table3NavController = [[[UINavigationController alloc] initWithRootViewController:commissionViewController] autorelease];
	[commissionViewController release];                                                    
	
	tabBarController.viewControllers = [NSArray arrayWithObjects:tableNavController, table2NavController, table3NavController, nil]; 	[window insertSubview:tabBarController.view belowSubview:xView.view];
	
	[window makeKeyAndVisible];
}
Please help.
ujagtap is offline   Reply With Quote
Old 10-30-2009, 08:48 AM   #316 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 370
Default

attached application with login screen which can invoke any time

thanks to dev
Attached Files
File Type: zip LoginTabApp.zip (42.2 KB, 198 views)
__________________
lazy blogs
The Lord's holy name be praised.
david_david is offline   Reply With Quote
Old 12-20-2009, 01:30 PM   #317 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 2
Default self.navigationController is nil

I think I'm having a similar problem to ipnewbie from a few posts back, and wondering if any resolution was found.

I have a tab bar where some tabs are navigation controllers. Everything is set up in IB, and I'm pretty sure I've done that part right, as things are working as intended for the most part. My table views load and actions I wrote in didSelectRowAtIndexPath work fine.

However, for one of the navigation controllers that loads a table view, I've tried to create a nav bar button that pushes a child view. I've found that when I call the [self.navigationController pushViewController:animated] line, self.navigationController is nil. I found a way around this using:

[self presentModalViewController:childController animated:YES];

but this is not really what I'm looking for, and isn't addressing the real problem. It seems that my table view is never being pushed onto the navigationController's stack in the first place. Has anyone had a simliar issue or know what I'm doing wrong? I have a feeling this is something very simple, but I just can't get it to work.

Thanks!

Jeff
jday001 is offline   Reply With Quote
Old 12-21-2009, 11:05 AM   #318 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 2
Default

Figured it out...also, found a great tutorial here:

YouTube - Building an iPhone App Combining Tab Bar, Navigation and Tab
jday001 is offline   Reply With Quote
Old 02-06-2010, 09:47 PM   #319 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 1
Default Top Nav Bar image

I can't tell you how helpful this thread has been to me. Its gotten me through many hours of pulling my hair out. One thing with this method that I am having trouble trying to do is overlay an image on top of the nav bar. I would love to make a little icon next to the title. Before this method I would just add an image view over the bar and insert my image. I know this idea is a little out of the norm but I would love to do it. Attached is an image of what I am trying to do. Thank you all for this great thread and any help would be so appreciated.


Last edited by kvoyt; 02-06-2010 at 09:59 PM.
kvoyt is offline   Reply With Quote
Old 02-18-2010, 12:02 AM   #320 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 1
Post

Quote:
Originally Posted by DevTeamOfOne View Post
I will contact you in private with a template and some help. I found the same issue and a complete and easy way around it.
Any chance I can get that template? I'm working on a similar project and I'm hurting.
adamR is offline   Reply With Quote
Old 03-05-2010, 01:20 PM   #321 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 3
Default loadview called 7 times?

Quote:
Originally Posted by DevTeamOfOne View Post
Code:
@interface AppDelegate : NSObject <UIApplicationDelegate> {
    UIWindow *window;
    UITabBarController *tabBarController;
    MyTableViewController *myTableViewController;
    MySecondTableViewController *mySecondTableViewController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) UITabBarController *tabBarController;
@property (nonatomic, retain) MyTableViewController *myTableViewController;
@property (nonatomic, retain) MySecondTableViewController *mySecondTableViewController;

@end




@implementation AppDelegate

@synthesize window, myTableViewController, mySecondTableViewController, tabBarController;

- (void)applicationDidFinishLaunching:(UIApplication *)application {

       tabBarController = [[UITabBarController alloc] init];          // creates your tab bar so you can add everything else to it

       myTableViewController = [[MyTableViewController alloc] init];               // creates your table view - this should be a UIViewController with a table view in it, or UITableViewController
       UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:myTableViewController] autorelease];
       [myTableViewController release];                                                              // creates your table view's navigation controller, then adds the view controller you made. Note I then let go of the view controller as the navigation controller now holds onto it for me. This saves memory.

       mySecondTableViewController = [[MySecondTableViewController alloc] init];   
       UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:mySecondTableViewController] autorelease];
       [mySecondTableViewController release];                                                    // does exactly the same as the first round, but for your second tab at the bottom of the bar.

       tabBarController.viewControllers = [NSArray arrayWithObjects:tableNavController, table2NavController, nil]; add both of your navigation controllers to the tab bar. You can put as many controllers on as you like, but they will turn into the more button like in the iPod program.

       [window addSubview:tabBarController.view];                                              // adds the tab bar's view property to the window
       [window makeKeyAndVisible];                                                                  // makes the window visible
}

- (void)dealloc {
       [tabBarController release];
       [window release];
       [super dealloc];
}                                           // lets go of everything else, thats so your program doesn't create any leaks of memory.

@end

I just typed up this quick App Delegate to show you how to do it. Yes, you do have rights to use whatever part of it you wish, and yes, you can ask any questions you like.

Please do note:
a ) I release the table views because they have been retained by the Navigation Controllers. Thus, I have doubled up and am taking double the memory. Once you have a nav controller holding your view, drop it. This saves memory. These nav controllers are set to drop automattically with their autorelease so there is no leak issue.

b ) if you need to add only one item to your tabBar for some strange reason, or just to test, change "arrayWithObjects: blah, blah2, nil" to "arrayWithObject: blah" and drop the nil.

Does this help you???
First, Thanks for the post and this great thread.
I've implemented the above code and it works great. However in my firstview (PeopleViewController) I added an NSLog(@"load view called for People"); to the -(void) loadView; method. When I run the app the console shows this message 7 times. I would have expected it only once. Can anyone explain this behavior?

thanks,
jax42 is offline   Reply With Quote
Old 03-21-2010, 03:20 AM   #322 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 4
Default

Quote:
Originally Posted by jdandrea View Post
Not this specific example, but here's another walkthrough that might help:

Tab bars and Navigation bars together - O'Reilly Broadcast
I have been following this walkthrough and combined it with a multi level table with some success.

I have 5 basic .h/.m files

App Delegate
Navcontroller - nothing in the .h/.m files
HomeView - just text and logos
TableView - has all the info for the table and the push to the detail view
DetailView - takes the selected row from the table view, displays the page title and then selects an image based on the row and displays it.

The problem I am trying to overcome is if I leave the detailview and go to the home view, when I return back to the table tab the detail view is still displayed. I cant work out how to reset the table when I navigate away from the it. What do I need to add to get the table to reset.

I have tried adding code to the viewDidDisappear and viewdidunload in the detail view - no luck

Cheers

Irish
irishkiwi is offline   Reply With Quote
Old 03-28-2010, 10:19 PM   #323 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 1
Default Can you explain

Hey can you explain me with code a little bit about how you solved your problem with using table view inside a tab bar ?

Thanks in advance

Quote:
Originally Posted by BostonMerlin View Post
I am having a bear of a time getting this to work. I've looked at it so many ways and followed tutorials on how to set each of the controllers separately but none show how to combine them all.

super simple bare bones sample

- create new Tab Bar Application
- create a new FirstScreenViewController .h and .m class
- add the appropriate TableView methods (as explained in other articles)
- Create a new FirstScreen.xib with a UIView
- Drop a TableView onto the View
- set the files owner to point to FirstScreenViewController
- Save to project
- load up MainWindow.xib
- set the first tab to be a Navigation Controller
- set the first tabs xib to point to the FirstScreen.xib file

Save and run. I see a TabBar window with two buttons. the first button has a navigation controller toolbar up top and i can see the outlines of an empty Table View. Looks great so far.

Load up my FirstScreenViewController.xib file. Connect the view, tableview datasource and tableview delegate to point over to the Files Owner. Save

Run the project, hangs for a second then dumps me back to xcdoe with an unhandled error. Take out the datasource and delegate connections and i'm back to see a blank tableview.

Any Ideas? I know this is a long winded desription.. sorry. I'm able to create a single page application with a tableview with no problem but when i dump this into a tabbar controller it craps out.

if you have any ideas please show me the light!

Thanks
John
ikvarma is offline   Reply With Quote
Old 04-01-2010, 12:35 AM   #324 (permalink)
Umesh Jagtap
 
ujagtap's Avatar
 
Join Date: Sep 2009
Location: Pune, India
Posts: 35
Default pushViewController not working

Hi everybody,

I have developed following application,

1. Took UITabBarController and UINavigationController in first tab.
2. In first navigation controller i took UISegmentedControl.
3. On segment selection i am changing views.
4. On first segment i am showing UITableView and on second segment i am showing UIImageView.
5. If i select any row from UITableView i want to display details for that row, by calling another ViewController.

But on selection of table cell it is not going ahead.

Please see attached sample code.
In DetailViewController i am calling showDetails() and in that function i am calling pushViewController for SecondTableView but it is not working. Please help.
Attached Files
File Type: zip myApp.zip (46.4 KB, 89 views)
ujagtap is offline   Reply With Quote
Old 04-22-2010, 04:57 AM   #325 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 5
Default

searching for the same thing i got your post.
Did you able to use a separate initial view except from the one when Tabitem selected?
I am looking for such an solution.
ashrafulkarim 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: 257
20 members and 237 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, MACralik, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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