VLCStreamingHistoryCell.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*****************************************************************************
  2. * VLCStreamingHistoryCell.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2016 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Adam Viaud <mcnight # mcnight.fr>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCStreamingHistoryCell.h"
  13. @implementation VLCStreamingHistoryCell
  14. - (BOOL)canBecomeFirstResponder {
  15. return YES;
  16. }
  17. - (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
  18. return (action == @selector(copy:) || action == @selector(renameStream:)) || [super canPerformAction:action withSender:sender];
  19. }
  20. - (void)customizeAppearance {
  21. self.textLabel.textColor = [UIColor whiteColor];
  22. self.detailTextLabel.textColor = [UIColor VLCLightTextColor];
  23. }
  24. - (void)renameStream:(id)sender {
  25. [self.delegate renameStreamFromCell:self];
  26. }
  27. @end