Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 2, 2011, 01: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, 05: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, 11: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, 02: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 11:49 AM.
ViviUO is offline   1 Reply With Quote
Old Aug 4, 2011, 02: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, 02: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, 04: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, 05: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, 01: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

Similar Threads
thread Thread Starter Forum Replies Last Post
What's up with iPhone 5s Slide to View> keatth iOS 7 11 Nov 7, 2013 07:38 PM
How will "Slide to view" be incorporated with Touch ID? AceGuy78 iOS 7 5 Oct 24, 2013 04:29 PM
General: Tweak to disable "slide to view" on a notification Zmanbaseball2 Jailbreaks and iOS Hacks 4 Mar 30, 2013 02:32 PM
Slide to view Rad-o iOS 6 3 Oct 11, 2012 12:56 PM
iPhone: overwritting of contents in UItable View Cell in ios DanielPrasath iOS 5 and earlier 0 Jul 26, 2012 08:45 AM

Forum Jump

All times are GMT -5. The time now is 05:29 PM.

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

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