daily pastebin goal
73%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UIButton *b = (UIButton *)sender;
  2. myTableViewCell* cell =  (myTableViewCell*)[[b superview] superview];
  3.    
  4. [cell.button setImage:myImage];
  5.    
  6. -(void)audioPlayerDidFinishPlaying:
  7. (AVAudioPlayer *)player successfully:(BOOL)flag
  8. {
  9.     NSLog(@"audioPlayerDone");
  10. }
  11.    
  12. UIButton *b = (UIButton *)sender;
  13. myTableViewCell* cell =  (myTableViewCell*)[[b superview] superview];
  14.  
  15. NSIndexPath *indexPath = [tableView indexPathForCell:cell];
  16. AudioObject *audio = [dataArray objectAtIndex:indexPath.row];
  17. audio.isPlaying = true;
  18.  
  19. [tableView reloadData];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top