Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 2, 2011, 12:01 AM   #1
sagarshivam
macrumors member
 
Join Date: May 2011
How to slide/navigate to another uitable view

Dear All

Using the below code, i tried making one table view containing three dif cell elements. Also 'disclosure' is embedded. Now on tapping the row or tapping the disclosure, i want to navigate to another uitable view containing cell sub-elements. How this can be done? Also back and next button is required.
plz help me. I can think of the logic but unable to implement it. Kindly help me through sample code.

Thanks
Sagar
sagarshivam is offline   0 Reply With Quote
Old Aug 2, 2011, 04:40 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
1) You have not posted "the below code"

2) Look at the documentation and Apple provided examples for UINavigationController.
robbieduncan is offline   0 Reply With Quote
Old Aug 2, 2011, 10:56 PM   #3
sagarshivam
Thread Starter
macrumors member
 
Join Date: May 2011
Hi

I tried working with UINavigation controller but problem is that I want to push the new view as sliding., but in my case it just overlaps with the previous view.
So on tapping cell content of one table, another table view come but not as sliding but as overlapping.

Meanwhile, Is it possible for a table view to divide into two parts such that, left part is list of projects in tree structure and right side contains the list of files corresponding to the projects tapped in left part. Plz guide me how to implement this.


Thanks
sagarshivam is offline   0 Reply With Quote
Old Aug 3, 2011, 01:46 AM   #4
ViviUO
macrumors 6502
 
Join Date: Jul 2009
If I understand you correctly from your first post, you do it in the didSelectRowAtindexPath method of your table view. Allocate the new table view (or views) you want to push, first. Maybe something similar to this:

Code:
- (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) indexPath
{

	YourTableViewController *yourTableViewConroller = [[YourTableViewController alloc] initWithNibName:@"YourTableViewController" bundle:nil];   
	YourTableViewController2*yourTableViewConroller2 = [[YourTableViewController2 alloc] initWithNibName:@"YourTableViewController2" bundle:nil];
	YourTableViewController3 *yourTableViewConroller3 = [[YourTableViewController3 alloc] initWithNibName:@"YourTableViewController3" bundle:nil];

    
	if (indexPath.section == 0 && indexPath.row == 0) {
		[self.navigationController pushViewController:yourTableViewController animated:YES];
	} else if (indexPath.section == 1 && indexPath.row == 0) {
		[self.navigationController pushViewController:yourTableViewController2 animated:YES];
	} else if (indexPath.section == 2 && indePath.row == 0) {
		[self.navigationController pushViewController:yourTableViewController3 animated:YES];
	} else {
		NSLog(@"Error");
	}

}
This code assumes your main table view has 3 sections with 1 row each.

You can probably alter it to fit your needs. Of course, there is probably a more elegant way than this to achieve what you need to do.

Also, sorry for any errors. I typed this up on my 12 in PB with a Chihuaua on my lap.

EDIT: Forgot about the bundle while alloc/init 'ing the view controllers, fixed.

Last edited by ViviUO; Aug 3, 2011 at 10:49 AM.
ViviUO is offline   1 Reply With Quote
Old Aug 4, 2011, 01:01 AM   #5
sagarshivam
Thread Starter
macrumors member
 
Join Date: May 2011
Thanks a lot!! It worked.

Is it possible for a table view to divide into two parts such that, left part is list of projects in tree structure and right side contains the list of files corresponding to the projects tapped in left part. Plz guide me how to implement this? Will customizing the tableview work?
sagarshivam is offline   0 Reply With Quote
Old Aug 4, 2011, 01:12 AM   #6
ViviUO
macrumors 6502
 
Join Date: Jul 2009
Quote:
Originally Posted by sagarshivam View Post
Thanks a lot!! It worked.

Is it possible for a table view to divide into two parts such that, left part is list of projects in tree structure and right side contains the list of files corresponding to the projects tapped in left part. Plz guide me how to implement this? Will customizing the tableview work?
Not on the iphone. Your best bet would be to take a look at split view controllers for the ipad.
ViviUO is offline   1 Reply With Quote
Old Aug 4, 2011, 03:25 AM   #7
sagarshivam
Thread Starter
macrumors member
 
Join Date: May 2011
Thanks a lot!!
I am just trying your way.

I am done with one small application in xcode. I have access to ipad. How is it possible to install .app from xcode to ipad?

I searched over the internet and found few ways but all are too confusing.
Even I found some $99 certification.

Plz let me know how to do it without going for this certification.

Thanks
sagarshivam is offline   0 Reply With Quote
Old Aug 4, 2011, 04:41 AM   #8
ViviUO
macrumors 6502
 
Join Date: Jul 2009
You need to be a registered developer with Apple to install on devices, which costs $99.

However you could just use the ipad simulator.
ViviUO is offline   1 Reply With Quote
Old Aug 5, 2011, 12:14 AM   #9
sagarshivam
Thread Starter
macrumors member
 
Join Date: May 2011
Thanks for the info. I am just planning to go for $99 program.

Now when I am done with the GUI part of my iphone/ipad application, I want to authenticate (suer id and password), populate the tables with data from remote server and updating as well. How is is possible to connect the application with remote mysql database.

I have already made web-app that communicates with those databases but now I want to the communication between xcode app and those mysql db.

Plz help me
sagarshivam is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How to supercharge Mini? ranny2 Mac mini 18 Oct 27, 2011 08:53 PM
How To Remove Server Part Of Lion? hhaydenn iMac 2 Aug 18, 2011 05:21 PM
How to sync ipod to another computer without it being deleted?? WilliamBos iPod touch 3 Jul 14, 2011 10:27 AM
How to move files to another folder using Automator? pjny OS X 0 Mar 18, 2011 09:15 AM
how to copy HD to another HD for an ibook etherburn2000 Macintosh Computers 2 Mar 10, 2005 01:33 PM


All times are GMT -5. The time now is 08:43 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC