add a UITapGestureRecognizer to a UILabel inside a table view cell?


sending UILabel __strong to parameter of incompatible type id<UIGestureRecognizerDelegate>   


    _singleTap =[[UITapGestureRecognizeralloc]initWithTarget:self action:@selector(handleSingleTap)];


    _messageLabel.userInteractionEnabled = YES;


– (void)handleSingleTap {

    CVLastActionItem *lastActionItem = [[_streamItemobject] actionItem];

    if ([lastActionItem.sparctype isEqualToString:@”content”] && [lastActionItem.sparcsubtype isEqualToString:@”comment”]) {

        [[[lastActionItem.targetobjectAtIndex:0] objectForKey:@”record”] objectForKey:@”key”];

        UIViewController* vc = [[IPhoneMVChatViewControlleralloc] initWithKey:[[[lastActionItem.targetobjectAtIndex:0] objectForKey:@”record”] objectForKey:@”key”]];

        [vc pushToStack];

    } else {

        IPhoneMVProfileViewController* pVC = [[IPhoneMVProfileViewControlleralloc] initWithKey:[[_streamItemobject] key]];

        [pVC pushToStack];




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s