我正在爲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