VLCMenuButton.m 850 B

1234567891011121314151617181920212223242526272829
  1. /*****************************************************************************
  2. * VLCMenuButton.m
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Gleb Pinigin <gpinigin # gmail.com>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import "VLCMenuButton.h"
  13. @implementation VLCMenuButton
  14. - (id)initWithCoder:(NSCoder *)aDecoder
  15. {
  16. self = [super initWithCoder:aDecoder];
  17. if (self) {
  18. UIImage *background = [[UIImage imageNamed:@"menuButton"] resizableImageWithCapInsets:UIEdgeInsetsMake(5, 5, 5, 5)];
  19. [self setBackgroundImage:background forState:UIControlStateNormal];
  20. }
  21. return self;
  22. }
  23. @end