FLEXArgumentInputNotSupportedView.m 743 B

123456789101112131415161718192021222324252627
  1. //
  2. // FLEXArgumentInputNotSupportedView.m
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 6/18/14.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import "FLEXArgumentInputNotSupportedView.h"
  9. #import "FLEXColor.h"
  10. @implementation FLEXArgumentInputNotSupportedView
  11. - (instancetype)initWithArgumentTypeEncoding:(const char *)typeEncoding
  12. {
  13. self = [super initWithArgumentTypeEncoding:typeEncoding];
  14. if (self) {
  15. self.inputTextView.userInteractionEnabled = NO;
  16. self.inputTextView.backgroundColor = [FLEXColor secondaryGroupedBackgroundColorWithAlpha:0.5];
  17. self.inputPlaceholderText = @"nil (type not supported)";
  18. self.targetSize = FLEXArgumentInputViewSizeSmall;
  19. }
  20. return self;
  21. }
  22. @end