In my table cell I am having different controls like ImageView, Label, Buttons.
In that ImageView is for UserProfile Image. When the user clicks the ProfileImage it has to highlight.
For that I am using the following code
- (IBAction)UserImageClick:(id)sender{
UITapGestureRecognizer *tapRecognizer = (UITapGestureRecognizer *)sender;
NSString *strUserID,*strUsername, *strUserProfileImage;
NSDictionary *dictionary = [self.allPostArray objectAtIndex:[tapRecognizer.view tag]];
strUserID = [dictionary valueForKey:@"user_id"];
strUsername= [dictionary valueForKey:@"username"];
strUserProfileImage = [dictionary valueForKey:@"userprofileimage"];
[sender setHighlighted:YES animated:YES];
}
Is there any way to highlight the sender and animate it? Here the sender is a ImageView.