Method invoked but not returning anything

Posted by or azran on Stack Overflow See other posts from Stack Overflow or by or azran
Published on 2012-10-15T09:24:13Z Indexed on 2012/10/15 9:37 UTC
Read the original article Hit count: 140

Filed under:
|
|

i am calling this method from a touch in UITableViewCell ,

-(void)PassTitleandiMageByindex:(NSString *)number{
NSLog(@"index : %d",number.intValue);
NSArray *objectsinDictionary                 =         [[[NSArray alloc]init]autorelease];
objectsinDictionary = [[DataManeger sharedInstance].sortedArray objectAtIndex:number.intValue];

if ([objectsinDictionary count] > 3) {
    ProductLabel = [objectsinDictionary     objectAtIndex:3];
    globaliMageRef = [objectsinDictionary   objectAtIndex:2];
    [self performSegueWithIdentifier:@"infoseg" sender:self];
}else{        
    mQid             = [objectsinDictionary objectAtIndex:1];
    globaliMageRef =   [objectsinDictionary objectAtIndex:2];
    [mIQEngines                                 Result:mQid];
    NSLog(@"mQid : %@  Global : %@",mQid,globaliMageRef);
}}

Problem:- i am trying to get the same functionality programmatically by calling [self PassTitleandiMageByindex:stringNumber]; when i am calling this programmatically i can see the debug log getting in the place it should be, but nothing happens (by pressing the UITableViewCellon the screen)

here is how it turns on by touch,

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSString *st = [NSString stringWithFormat:@"%d",[indexPath           row]];
[self PassTitleandiMageByindex:st];}

I have also tried to call the table-view delegate by :[[Tview delegate] tableView:Tview didSelectRowAtIndexPath:selectedCellIndexPath]; but, nothing happened.

© Stack Overflow or respective owner

Related posts about ios

Related posts about uitableview