iPad/iPhone TableVIew help pushing a new view -


So we recently started developing applications for the iPad for our company. Unfortunately, none of us have ever developed an iPhone / iPad, so we learn on the fly and are feathering it. Actually our problem is happening when we try to press a view while clicking on a table. None of us can understand why it is not doing this because the code can not tell anything that can tell the code. It looks like the method :: What didRowSelectedAtIndex is

  here - (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) can indexPath {// navigation logic - and a new push view controller that (pdvController == null) pdvController = [[PersonDetailViewController alloc] initWithNibName: @ "PersonDetailView" bundle: [NSBundle mainBundle]]; Person * aPerson = [App Delegate.people ObjectAutandex: indexPath.row]; PdvController.aPerson = aPerson; [Self.appDelegate.navigationController pushViewController: pdvController Animated: Yes]; }  

and here is the title for toolbarSearchViewController:

  #import & lt; UIKit / UIKit.h & gt; # Import "Recent FindsController." #import "PersonDetailViewController.h" @Scan toolbarSearchAppDelegate, PersonDetailViewController; @interface ToolbarSearchViewController: UIViewController & LT; UISearchBarDelegate, UIPopoverControllerDelegate, RecentSearchesDelegate & gt; {ToolbarSearchAppDelegate * appDelegate; UIToolbar * toolbar; UISearchBar * searchBar; UITableView * resultsTable; PersonDetailViewController * pdvController; Recent searches Controller * Recent Finder Controller; UITableViewController * ResultsTable Controller; UIPopoverController * Recent Findpop Controller; } @ Property (Nonomatic, Replacement) IBOutlet UIToolbar * Toolbar; @property (nonatomic, retain) UISearchBar * searchBar; @protecti (nontomic, raten) IBOutlet UITWview * ResultsTable; @property (nonatomic, retain) ToolbarSearchAppDelegate * appDelegate; @ Property (Nonomatic, Written) Perspective Viv Controller * PDVC Controller; @protecti (nanatomic, retten) UITableViewController * resultsTableController; @protecti (nonatomic, retention) Recent searches: * Detector * Recent Finder Controller; @protecti (nonatomic, intact) UIPOpure Controller * Recent SearchPopper Controller; @end  

and ToolbarSearchAppDelegate Header:

  #import & lt; UIKit / UIKit.h & gt; @ Class ToolbarSearchViewController; @ Interface toolbar SearchAppDelegate: NSObject & lt; UIApplicationDelegate & gt; {UIWindow * window; ToolbarSearchViewController * viewController; UINavigationController * Navigation Controller; NSMutableArray * People; } @ Property (Nonomatic, Retaining) IBOutlet UIWindow * Window; @protecti (non-nominal, retaining) IBOutlet ToolbarSearchViewController * viewController; @protecti (nanatomic, raten) IBotlate UIAG controller * navigation controller; @property (nonatomic, retain) NSMutableArray * People; @end  

and finally the person DetailController.h:

  #import & lt; UIKit / UIKit.h & gt; @ Class person; @InterfaceFix DynamicView Controller: UIViewController {IBOutlet UITableView * tableView; Person * aPerson; } @ Property (non-nominal, retaining) person * Episode; @property (nontomic, write) UITableView * tableView; @end  

We are able to make any sense to do this in because we are very angry why not load it and you can provide any help or insight What was amazing would not have been what I needed to see, so if you need more specific things, then let me know and I will post it. Thanks!

ps I'm not sure how code tags handle the quirky syntax of all Obj-c, so if you see syntax errors, ignore them. Assume that the syntax is correct and compile and run ...

This line seems a bit odd:

  [self.appDelegate.navigationController pushViewController: pdvController Animated: Yes];  

Try and

  [self.navigationController pushViewController: pdvController animated: YES]; Submit  

Edit , the problem is that you do not have a navigation controller, so you can not put that view controller you can do , a view controller is pushing by , using

  [self presentModalViewController: animated pdvController: yes];  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -