VLCMenuButton.m 598 B

123456789101112131415161718192021222324252627
  1. //
  2. // VLCMenuButton.m
  3. // VLC for iOS
  4. //
  5. // Created by Gleb on 6/17/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 "VLCMenuButton.h"
  11. @implementation VLCMenuButton
  12. - (id)initWithCoder:(NSCoder *)aDecoder
  13. {
  14. self = [super initWithCoder:aDecoder];
  15. if (self) {
  16. UIImage *background = [[UIImage imageNamed:@"menuButton"] resizableImageWithCapInsets:UIEdgeInsetsMake(5, 5, 5, 5)];
  17. [self setBackgroundImage:background forState:UIControlStateNormal];
  18. }
  19. return self;
  20. }
  21. @end