我正在为iPhone .. SMS应用,现在我想在长按改变我的聊天泡泡的图像(如,而我复制含量的不同)..如何更改UILongPressGestureRecognizer上的图像?
我有这样的代码..
if (longPressRecognizer.state == UIGestureRecognizerStateBegan)
{
[self becomeFirstResponder];
//NSIndexPath *pressedIndexPath = [tblOutgoingMessagesRecords indexPathForRowAtPoint:[longPressRecognizer locationInView:tblOutgoingMessagesRecords]];
NSIndexPath *pressedIndexPath = [tblOutgoingMessagesRecords indexPathForCell:(UITableViewCell *)longPressRecognizer.view];
if (pressedIndexPath && (pressedIndexPath.row != NSNotFound) && (pressedIndexPath.section != NSNotFound))
{
[self becomeFirstResponder];
NSLog(@" Presssed on Copy ");
我只是想改变我的聊天气泡的颜色为蓝色,而我在iPhone默认做我想做的事情一样......任何一个可以帮助我lonpress它拷贝.. 像...
怎么样?米使用图像的聊天气泡..我想更换onhold(长按)..所以我怎么办? – Vivek2012