| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // FLEXArgumentInputView.h
- // Flipboard
- //
- // Created by Ryan Olson on 5/30/14.
- // Copyright (c) 2014 Flipboard. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSUInteger, FLEXArgumentInputViewSize) {
- FLEXArgumentInputViewSizeDefault = 0,
- FLEXArgumentInputViewSizeLarge
- };
- @interface FLEXArgumentInputView : UIView
- - (instancetype)initWithArgumentTypeEncoding:(const char *)typeEncoding;
- /// The name of the field. Optional (can be nil).
- @property (nonatomic, copy) NSString *title;
- /// To populate the filed with an initial value, set this property.
- /// To reteive the value input by the user, access the property.
- /// Primitive types and structs should/will be boxed in NSValue containers.
- @property (nonatomic, strong) id inputOutput;
- /// Setting this value to large will make some argument input views increase the size of their input field(s).
- /// Useful to increase the use of space if there is only one input view on screen (i.e. for property and ivar editing).
- @property (nonatomic, assign) FLEXArgumentInputViewSize targetSize;
- // Subclasses can override
- /// If the input view has one or more text views, returns YES when one of them is focused.
- @property (nonatomic, readonly) BOOL inputViewIsFirstResponder;
- // For subclass eyes only
- @property (nonatomic, strong, readonly) UILabel *titleLabel;
- @property (nonatomic, assign, readonly) const char *typeEncoding;
- @property (nonatomic, readonly) BOOL showsTitle;
- + (CGFloat)titleBottomPadding;
- @end
|