VLCGoogleDriveTableViewCell.m 1020 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // VLCGoogleDriveTableViewCell.m
  3. // VLC for iOS
  4. //
  5. // Created by Felix Paul Kühne on 24.05.13.
  6. // Copyright (c) 2013 VideoLAN. All rights reserved.
  7. //
  8. // Refer to the COPYING file of the official project for license.
  9. //
  10. #import "VLCGoogleDriveTableViewCell.h"
  11. @implementation VLCGoogleDriveTableViewCell
  12. + (VLCGoogleDriveTableViewCell *)cellWithReuseIdentifier:(NSString *)ident
  13. {
  14. NSArray *nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCGoogleDriveTableViewCell" owner:nil options:nil];
  15. NSAssert([nibContentArray count] == 1, @"meh");
  16. NSAssert([[nibContentArray lastObject] isKindOfClass:[VLCGoogleDriveTableViewCell class]], @"meh meh");
  17. VLCGoogleDriveTableViewCell *cell = (VLCGoogleDriveTableViewCell *)[nibContentArray lastObject];
  18. return cell;
  19. }
  20. - (void)_updatedDisplayedInformation
  21. {
  22. [self setNeedsDisplay];
  23. }
  24. + (CGFloat)heightOfCell
  25. {
  26. if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
  27. return 80.;
  28. return 48.;
  29. }
  30. @end