Method is not calling from UITableview?

I have a UITableView and in didSelect method i'm calling method of another class with parameter and when i click the row i want to open that class xib with corresponding paramter .But here when i click the UITableView row nothing is happening ,actually method is calling but new xib is not opening.

following code in didSelect method`

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    SearchResult* hit = (SearchResult*)[results objectAtIndex:[indexPath row]];

    [epubViewController loadSpine:hit.chapterIndex atPageIndex:hit.pageIndex highlightSearchResult:hit];


epubViewController is the object of second class and "loadSpine: atPageIndex: highlightSearchResult:" is a method in that class"

please help me


You are not presenting epubViewController. Add this line after loadSpine method call:

[self.navigationController pushViewController: epubViewController animated: YES];

Also, I would pass hit to epubViewController and call loadSpine on viewDidLoad or viewDidAppear method inside of epubViewController.

Please push or present your view controller using this method and in -(void)viewDidLoad:call the method you want to hit by using this code-

[self.navigationController pushViewController: epubViewController animated: YES];

in viewDidLoad call your load spine method as

[self loadSpine];

hope this helps

Need Your Help

Mysql2 query is not working on Heroku

mysql ruby-on-rails ruby-on-rails-3 postgresql activerecord

I have a mysql query which does not work with postgresql :-

WSE 3.0 using x509 certificate for signing wcf message

.net web-services signing x509 wse

Please can you please help to use x509 certificates for signing . I am using WSE 3.0 for visual sturio 2010 c#.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.