-
Notifications
You must be signed in to change notification settings - Fork 0
/
FieldUtils.h
39 lines (24 loc) · 1.33 KB
/
FieldUtils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// FieldUtils.h
// RGButterfly
//
// Created by Stuart Pineo on 7/3/15.
// Copyright (c) 2015 Stuart Pineo. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface FieldUtils : NSObject
+ (UILabel *)createLabel:(NSString *)name;
+ (UILabel *)createLabel:(NSString *)name xOffset:(CGFloat)x yOffset:(CGFloat)y;
+ (UILabel *)createLabel:(NSString *)name xOffset:(CGFloat)x yOffset:(CGFloat)y width:(CGFloat)width height:(CGFloat)height;
+ (UILabel *)createSmallLabel:(NSString *)name xOffset:(CGFloat)x yOffset:(CGFloat)y;
+ (UILabel *)createLargeLabel:(NSString *)name xOffset:(CGFloat)x yOffset:(CGFloat)y;
+ (UITextField *)createTextField:(NSString *)name tag:(NSInteger)tag;
+ (UITextView *)createTextView:(NSString *)name tag:(NSInteger)tag;
+ (UIPickerView *)createPickerView:(CGFloat)width tag:(NSInteger)tag;
+ (UIPickerView *)createPickerView:(CGFloat)width tag:(NSInteger)tag xOffset:(CGFloat)x yOffset:(CGFloat)y;
+ (void)makeTextFieldNonEditable:(UITextField *)refName content:(NSString *)content border:(BOOL)border;
+ (void)makeTextFieldEditable:(UITextField *)refName content:(NSString *)content;
+ (void)makeTextViewNonEditable:(UITextView *)refName content:(NSString *)content border:(BOOL)border;
+ (void)makeTextViewEditable:(UITextView *)refName content:(NSString *)content;
@end