├── Example.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
├── Example
├── ViewController.h
├── AppDelegate.h
├── main.m
├── ViewController.m
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── AppDelegate.m
├── KVParkedTextField
├── KVParkedTextField.h
└── KVParkedTextField.m
├── KVParkedTextField.podspec
├── README.md
├── LICENSE
└── .gitignore
/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Example/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // Example
4 | //
5 | // Created by Tran Manh Tuan on 7/7/16.
6 | // Copyright © 2016 Citigo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/Example/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // Example
4 | //
5 | // Created by Tran Manh Tuan on 7/7/16.
6 | // Copyright © 2016 Citigo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/Example/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // Example
4 | //
5 | // Created by cauca on 7/7/16.
6 | // Copyright © 2016 Citigo. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/KVParkedTextField/KVParkedTextField.h:
--------------------------------------------------------------------------------
1 | //
2 | // KVParkedTextField.h
3 | // KVParkedTextField
4 | //
5 | // Created by Tran Manh Tuan on 7/7/16.
6 | // Copyright © 2016 Citigo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface KVParkedTextField : UITextField
12 |
13 | @property (nonatomic, strong) NSString *parkedText;
14 | @property (nonatomic, strong) NSString *placeholderText;
15 | @property (nonatomic, strong) NSString *typedText;
16 | @property (nonatomic, strong) UIFont *parkedTextFont;
17 | @property (nonatomic, strong) UIColor *parkedTextColor;
18 |
19 | @end
20 |
--------------------------------------------------------------------------------
/KVParkedTextField.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = "KVParkedTextField"
3 | s.version = "0.0.3"
4 | s.summary = "A text field with a constant text/placeholder"
5 | s.homepage = "https://github.com/tuantmdev/KVParkedTextField"
6 | s.screenshots = "https://raw.githubusercontent.com/gmertk/ParkedTextField/master/Screenshots/ParkedTextField.gif", "http://i.imgur.com/N23OrK1.png"
7 | s.license = { :type => "MIT", :file => "LICENSE" }
8 | s.author = { "tuantmdev" => "tuan.dev@gmail.com" }
9 | s.social_media_url = "http://facebook.com/tuantm.dev"
10 | s.platform = :ios, "8.0"
11 | s.source = { :git => "https://github.com/tuantmdev/KVParkedTextField.git", :tag => "#{s.version}" }
12 | s.source_files = "KVParkedTextField/*.{h,m}"
13 | s.requires_arc = true
14 | end
15 |
--------------------------------------------------------------------------------
/Example/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // Example
4 | //
5 | // Created by Tran Manh Tuan on 7/7/16.
6 | // Copyright © 2016 Citigo. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "KVParkedTextField.h"
11 |
12 | @interface ViewController ()
13 |
14 | @property (nonatomic, weak) IBOutlet KVParkedTextField *textField;
15 |
16 | @end
17 |
18 | @implementation ViewController
19 |
20 | - (void)viewDidLoad {
21 | [super viewDidLoad];
22 | // Do any additional setup after loading the view, typically from a nib.
23 |
24 | //Customize parked textfield
25 | self.textField.parkedText = @".kiotviet.com";
26 | self.textField.placeholderText = @"kiot-name";
27 | }
28 |
29 | - (void)didReceiveMemoryWarning {
30 | [super didReceiveMemoryWarning];
31 | // Dispose of any resources that can be recreated.
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # KVParkedTextField
2 |
3 | [](http://cocoapods.org/pods/KVParkedTextField)
4 | [](http://cocoapods.org/pods/KVParkedTextField)
5 | [](http://cocoapods.org/pods/KVParkedTextField)
6 |
7 | A text field with a constant text/placeholder (Objective-C version)
8 |
9 | Based on Swift version of Günay Mert Karadoğan. You can check it [here](https://github.com/gmertk/ParkedTextField)
10 |
11 | ## Screenshot
12 |
13 | 
14 |
15 | ## Author
16 |
17 | Tran Manh Tuan, tuantm.dev@gmail.com
18 |
19 | ## License
20 |
21 | KVParkedTextField is available under the MIT license. See the LICENSE file for more info.
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 tuantmdev
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Example/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/Example/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/Example/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/Example/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // Example
4 | //
5 | // Created by Tran Manh Tuan on 7/7/16.
6 | // Copyright © 2016 Citigo. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 | - (void)applicationWillResignActive:(UIApplication *)application {
24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26 | }
27 |
28 | - (void)applicationDidEnterBackground:(UIApplication *)application {
29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31 | }
32 |
33 | - (void)applicationWillEnterForeground:(UIApplication *)application {
34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
35 | }
36 |
37 | - (void)applicationDidBecomeActive:(UIApplication *)application {
38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39 | }
40 |
41 | - (void)applicationWillTerminate:(UIApplication *)application {
42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.gitignore.io/api/objective-c,osx,tower
3 |
4 | ### Objective-C ###
5 | # Xcode
6 | #
7 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
8 |
9 | ## Build generated
10 | build/
11 | DerivedData/
12 |
13 | ## Various settings
14 | *.pbxuser
15 | !default.pbxuser
16 | *.mode1v3
17 | !default.mode1v3
18 | *.mode2v3
19 | !default.mode2v3
20 | *.perspectivev3
21 | !default.perspectivev3
22 | xcuserdata/
23 |
24 | ## Other
25 | *.moved-aside
26 | *.xcuserstate
27 |
28 | ## Obj-C/Swift specific
29 | *.hmap
30 | *.ipa
31 | *.dSYM.zip
32 | *.dSYM
33 |
34 | # CocoaPods
35 | #
36 | # We recommend against adding the Pods directory to your .gitignore. However
37 | # you should judge for yourself, the pros and cons are mentioned at:
38 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
39 | #
40 | # Pods/
41 |
42 | # Carthage
43 | #
44 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
45 | # Carthage/Checkouts
46 |
47 | Carthage/Build
48 |
49 | # fastlane
50 | #
51 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
52 | # screenshots whenever they are needed.
53 | # For more information about the recommended setup visit:
54 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
55 |
56 | fastlane/report.xml
57 | fastlane/screenshots
58 |
59 | #Code Injection
60 | #
61 | # After new code Injection tools there's a generated folder /iOSInjectionProject
62 | # https://github.com/johnno1962/injectionforxcode
63 |
64 | iOSInjectionProject/
65 |
66 | ### Objective-C Patch ###
67 | *.xcscmblueprint
68 |
69 |
70 | ### OSX ###
71 | *.DS_Store
72 | .AppleDouble
73 | .LSOverride
74 |
75 | # Icon must end with two \r
76 | Icon
77 |
78 |
79 | # Thumbnails
80 | ._*
81 |
82 | # Files that might appear in the root of a volume
83 | .DocumentRevisions-V100
84 | .fseventsd
85 | .Spotlight-V100
86 | .TemporaryItems
87 | .Trashes
88 | .VolumeIcon.icns
89 | .com.apple.timemachine.donotpresent
90 |
91 | # Directories potentially created on remote AFP share
92 | .AppleDB
93 | .AppleDesktop
94 | Network Trash Folder
95 | Temporary Items
96 | .apdisk
97 |
98 |
99 | ### Tower ###
100 | # Tower.app - http://www.git-tower.com/
101 | Icon.png
--------------------------------------------------------------------------------
/Example/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
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 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/KVParkedTextField/KVParkedTextField.m:
--------------------------------------------------------------------------------
1 | //
2 | // KVParkedTextField.m
3 | // KVParkedTextField
4 | //
5 | // Created by Tran Manh Tuan on 7/7/16.
6 | // Copyright © 2016 Citigo. All rights reserved.
7 | //
8 |
9 | #import "KVParkedTextField.h"
10 |
11 | typedef NS_ENUM(uint8_t, KVTypingState) {
12 | KVTypingStart = 0,
13 | KVTypingTyped
14 | };
15 |
16 | @interface KVParkedTextField()
17 |
18 | @property (nonatomic, strong) NSString *prevText;
19 | @property (nonatomic, assign) KVTypingState typingState;
20 |
21 | @end
22 |
23 | @implementation KVParkedTextField
24 |
25 | - (instancetype)initWithCoder:(NSCoder *)aDecoder {
26 | self = [super initWithCoder:aDecoder];
27 | if (self) {
28 | [self initialize];
29 | }
30 | return self;
31 | }
32 |
33 | - (instancetype)initWithFrame:(CGRect)frame {
34 | self = [super initWithFrame:frame];
35 | if (self) {
36 | [self initialize];
37 | }
38 | return self;
39 | }
40 |
41 | - (void)initialize {
42 | UIFont *boldfFont = [self bold:self.font];
43 | if (boldfFont) {
44 | self.parkedTextFont = boldfFont;
45 | } else {
46 | self.parkedTextFont = self.font;
47 | }
48 |
49 | self.parkedTextColor = self.textColor;
50 |
51 | [self addTarget:self action:@selector(textChanged:) forControlEvents:UIControlEventEditingChanged];
52 |
53 | self.text = @"";
54 | self.prevText = @"";
55 |
56 | self.typingState = KVTypingStart;
57 | }
58 |
59 | #pragma mark - Utils
60 |
61 | - (UIFont *)bold:(UIFont *)font {
62 | UIFontDescriptor *descriptor = [font.fontDescriptor fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold];
63 | return [UIFont fontWithDescriptor:descriptor size:0];
64 | }
65 |
66 | - (void)textChanged:(KVParkedTextField *)sender {
67 | switch (self.typingState) {
68 | case KVTypingStart:
69 | {
70 | if (self.text.length > 0) {
71 | self.text = [NSString stringWithFormat:@"%@%@", self.typedText, self.parkedText];
72 | [self updateAttributedText:self.text];
73 | self.prevText = self.text;
74 | [self gotoBeginningOfParkedText];
75 | self.typingState = KVTypingTyped;
76 | }
77 | break;
78 | }
79 | case KVTypingTyped:
80 | {
81 | if ([self.text isEqualToString:self.parkedText] || self.text.length == 0) {
82 | self.typingState = KVTypingStart;
83 | self.text = @"";
84 | return;
85 | }
86 |
87 | if ([self.text hasSuffix:self.parkedText]) {
88 | self.prevText = self.text;
89 | }
90 |
91 | [self updateAttributedText:self.prevText];
92 | [self gotoBeginningOfParkedText];
93 |
94 | break;
95 | }
96 | default:
97 | break;
98 | }
99 | }
100 |
101 | - (void)updateAttributedText:(NSString *)text {
102 | NSRange parkedTextRange = [text rangeOfString:self.parkedText options:NSBackwardsSearch];
103 | NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:text];
104 | [attributedString addAttributes:[self parkedTextAttributes] range:parkedTextRange];
105 | self.attributedText = attributedString;
106 | }
107 |
108 | - (void)gotoBeginningOfParkedText {
109 | UITextPosition *position = [self beginningOfParkedText];
110 | if (position) {
111 | [self gotoTextPosition:position];
112 | }
113 | }
114 |
115 | - (void)gotoTextPosition:(UITextPosition *)position {
116 | self.selectedTextRange = [self textRangeFromPosition:position toPosition:position];
117 | }
118 |
119 |
120 | #pragma mark - Getters
121 |
122 | - (NSString *)typedText {
123 | NSString *text = self.text;
124 | if (!text) {
125 | return @"";
126 | }
127 |
128 | if ([text hasSuffix:self.parkedText]) {
129 | return [text substringToIndex:(text.length - self.parkedText.length)];
130 | } else {
131 | return text;
132 | }
133 | }
134 |
135 | - (NSDictionary *)parkedTextAttributes {
136 | return @{
137 | NSFontAttributeName: self.parkedTextFont,
138 | NSForegroundColorAttributeName: self.parkedTextColor
139 | };
140 | }
141 |
142 | - (UITextPosition *)beginningOfParkedText {
143 | return [self positionFromPosition:self.endOfDocument offset:(-self.parkedText.length)];
144 | }
145 |
146 | #pragma mark - Setters
147 |
148 | - (void)setParkedText:(NSString *)parkedText {
149 | NSString *text = self.text;
150 |
151 | if (!text) {
152 | return;
153 | }
154 |
155 | if (text.length > 0) {
156 | NSString *typed = [text substringToIndex:(-self.parkedText.length)];
157 | text = [NSString stringWithFormat:@"%@%@", typed, parkedText];
158 | self.prevText = text;
159 | _parkedText = parkedText;
160 |
161 | [self textChanged:self];
162 | } else {
163 | _parkedText = parkedText;
164 | }
165 |
166 | self.placeholder = [NSString stringWithFormat:@"%@%@", self.placeholderText, parkedText];
167 | }
168 |
169 | - (void)setTypedText:(NSString *)typedText {
170 | self.text = [NSString stringWithFormat:@"%@%@", typedText, self.parkedText];
171 | [self textChanged:self];
172 | }
173 |
174 | - (void)setPlaceholderText:(NSString *)placeholderText {
175 | _placeholderText = placeholderText;
176 | self.placeholder = [NSString stringWithFormat:@"%@%@", self.placeholderText, self.parkedText];
177 | }
178 |
179 | - (void)setPlaceholder:(NSString *)placeholder {
180 | NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:placeholder];
181 | NSRange parkedTextRange = NSMakeRange(self.placeholderText.length, self.parkedText.length);
182 | if ([placeholder hasSuffix:self.parkedText]) {
183 | [attributedString addAttributes:[self parkedTextAttributes] range:parkedTextRange];
184 | self.attributedPlaceholder = attributedString;
185 | }
186 | }
187 |
188 | @end
189 |
--------------------------------------------------------------------------------
/Example.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 53F82E601D2E3655003F2259 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 53F82E5F1D2E3655003F2259 /* main.m */; };
11 | 53F82E631D2E3655003F2259 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 53F82E621D2E3655003F2259 /* AppDelegate.m */; };
12 | 53F82E661D2E3655003F2259 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 53F82E651D2E3655003F2259 /* ViewController.m */; };
13 | 53F82E691D2E3655003F2259 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 53F82E671D2E3655003F2259 /* Main.storyboard */; };
14 | 53F82E6B1D2E3655003F2259 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 53F82E6A1D2E3655003F2259 /* Assets.xcassets */; };
15 | 53F82E6E1D2E3655003F2259 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 53F82E6C1D2E3655003F2259 /* LaunchScreen.storyboard */; };
16 | 53F82E781D2E3686003F2259 /* KVParkedTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 53F82E771D2E3686003F2259 /* KVParkedTextField.m */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | 53F82E5B1D2E3655003F2259 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | 53F82E5F1D2E3655003F2259 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
22 | 53F82E611D2E3655003F2259 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
23 | 53F82E621D2E3655003F2259 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
24 | 53F82E641D2E3655003F2259 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
25 | 53F82E651D2E3655003F2259 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
26 | 53F82E681D2E3655003F2259 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
27 | 53F82E6A1D2E3655003F2259 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
28 | 53F82E6D1D2E3655003F2259 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
29 | 53F82E6F1D2E3655003F2259 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 53F82E761D2E3686003F2259 /* KVParkedTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KVParkedTextField.h; sourceTree = ""; };
31 | 53F82E771D2E3686003F2259 /* KVParkedTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KVParkedTextField.m; sourceTree = ""; };
32 | /* End PBXFileReference section */
33 |
34 | /* Begin PBXFrameworksBuildPhase section */
35 | 53F82E581D2E3655003F2259 /* Frameworks */ = {
36 | isa = PBXFrameworksBuildPhase;
37 | buildActionMask = 2147483647;
38 | files = (
39 | );
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXFrameworksBuildPhase section */
43 |
44 | /* Begin PBXGroup section */
45 | 53F82E521D2E3655003F2259 = {
46 | isa = PBXGroup;
47 | children = (
48 | 53F82E751D2E3686003F2259 /* KVParkedTextField */,
49 | 53F82E5D1D2E3655003F2259 /* Example */,
50 | 53F82E5C1D2E3655003F2259 /* Products */,
51 | );
52 | sourceTree = "";
53 | };
54 | 53F82E5C1D2E3655003F2259 /* Products */ = {
55 | isa = PBXGroup;
56 | children = (
57 | 53F82E5B1D2E3655003F2259 /* Example.app */,
58 | );
59 | name = Products;
60 | sourceTree = "";
61 | };
62 | 53F82E5D1D2E3655003F2259 /* Example */ = {
63 | isa = PBXGroup;
64 | children = (
65 | 53F82E611D2E3655003F2259 /* AppDelegate.h */,
66 | 53F82E621D2E3655003F2259 /* AppDelegate.m */,
67 | 53F82E641D2E3655003F2259 /* ViewController.h */,
68 | 53F82E651D2E3655003F2259 /* ViewController.m */,
69 | 53F82E671D2E3655003F2259 /* Main.storyboard */,
70 | 53F82E6A1D2E3655003F2259 /* Assets.xcassets */,
71 | 53F82E6C1D2E3655003F2259 /* LaunchScreen.storyboard */,
72 | 53F82E6F1D2E3655003F2259 /* Info.plist */,
73 | 53F82E5E1D2E3655003F2259 /* Supporting Files */,
74 | );
75 | path = Example;
76 | sourceTree = "";
77 | };
78 | 53F82E5E1D2E3655003F2259 /* Supporting Files */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 53F82E5F1D2E3655003F2259 /* main.m */,
82 | );
83 | name = "Supporting Files";
84 | sourceTree = "";
85 | };
86 | 53F82E751D2E3686003F2259 /* KVParkedTextField */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 53F82E761D2E3686003F2259 /* KVParkedTextField.h */,
90 | 53F82E771D2E3686003F2259 /* KVParkedTextField.m */,
91 | );
92 | path = KVParkedTextField;
93 | sourceTree = "";
94 | };
95 | /* End PBXGroup section */
96 |
97 | /* Begin PBXNativeTarget section */
98 | 53F82E5A1D2E3655003F2259 /* Example */ = {
99 | isa = PBXNativeTarget;
100 | buildConfigurationList = 53F82E721D2E3655003F2259 /* Build configuration list for PBXNativeTarget "Example" */;
101 | buildPhases = (
102 | 53F82E571D2E3655003F2259 /* Sources */,
103 | 53F82E581D2E3655003F2259 /* Frameworks */,
104 | 53F82E591D2E3655003F2259 /* Resources */,
105 | );
106 | buildRules = (
107 | );
108 | dependencies = (
109 | );
110 | name = Example;
111 | productName = Example;
112 | productReference = 53F82E5B1D2E3655003F2259 /* Example.app */;
113 | productType = "com.apple.product-type.application";
114 | };
115 | /* End PBXNativeTarget section */
116 |
117 | /* Begin PBXProject section */
118 | 53F82E531D2E3655003F2259 /* Project object */ = {
119 | isa = PBXProject;
120 | attributes = {
121 | LastUpgradeCheck = 0730;
122 | ORGANIZATIONNAME = Citigo;
123 | TargetAttributes = {
124 | 53F82E5A1D2E3655003F2259 = {
125 | CreatedOnToolsVersion = 7.3.1;
126 | };
127 | };
128 | };
129 | buildConfigurationList = 53F82E561D2E3655003F2259 /* Build configuration list for PBXProject "Example" */;
130 | compatibilityVersion = "Xcode 3.2";
131 | developmentRegion = English;
132 | hasScannedForEncodings = 0;
133 | knownRegions = (
134 | en,
135 | Base,
136 | );
137 | mainGroup = 53F82E521D2E3655003F2259;
138 | productRefGroup = 53F82E5C1D2E3655003F2259 /* Products */;
139 | projectDirPath = "";
140 | projectRoot = "";
141 | targets = (
142 | 53F82E5A1D2E3655003F2259 /* Example */,
143 | );
144 | };
145 | /* End PBXProject section */
146 |
147 | /* Begin PBXResourcesBuildPhase section */
148 | 53F82E591D2E3655003F2259 /* Resources */ = {
149 | isa = PBXResourcesBuildPhase;
150 | buildActionMask = 2147483647;
151 | files = (
152 | 53F82E6E1D2E3655003F2259 /* LaunchScreen.storyboard in Resources */,
153 | 53F82E6B1D2E3655003F2259 /* Assets.xcassets in Resources */,
154 | 53F82E691D2E3655003F2259 /* Main.storyboard in Resources */,
155 | );
156 | runOnlyForDeploymentPostprocessing = 0;
157 | };
158 | /* End PBXResourcesBuildPhase section */
159 |
160 | /* Begin PBXSourcesBuildPhase section */
161 | 53F82E571D2E3655003F2259 /* Sources */ = {
162 | isa = PBXSourcesBuildPhase;
163 | buildActionMask = 2147483647;
164 | files = (
165 | 53F82E661D2E3655003F2259 /* ViewController.m in Sources */,
166 | 53F82E631D2E3655003F2259 /* AppDelegate.m in Sources */,
167 | 53F82E601D2E3655003F2259 /* main.m in Sources */,
168 | 53F82E781D2E3686003F2259 /* KVParkedTextField.m in Sources */,
169 | );
170 | runOnlyForDeploymentPostprocessing = 0;
171 | };
172 | /* End PBXSourcesBuildPhase section */
173 |
174 | /* Begin PBXVariantGroup section */
175 | 53F82E671D2E3655003F2259 /* Main.storyboard */ = {
176 | isa = PBXVariantGroup;
177 | children = (
178 | 53F82E681D2E3655003F2259 /* Base */,
179 | );
180 | name = Main.storyboard;
181 | sourceTree = "";
182 | };
183 | 53F82E6C1D2E3655003F2259 /* LaunchScreen.storyboard */ = {
184 | isa = PBXVariantGroup;
185 | children = (
186 | 53F82E6D1D2E3655003F2259 /* Base */,
187 | );
188 | name = LaunchScreen.storyboard;
189 | sourceTree = "";
190 | };
191 | /* End PBXVariantGroup section */
192 |
193 | /* Begin XCBuildConfiguration section */
194 | 53F82E701D2E3655003F2259 /* Debug */ = {
195 | isa = XCBuildConfiguration;
196 | buildSettings = {
197 | ALWAYS_SEARCH_USER_PATHS = NO;
198 | CLANG_ANALYZER_NONNULL = YES;
199 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
200 | CLANG_CXX_LIBRARY = "libc++";
201 | CLANG_ENABLE_MODULES = YES;
202 | CLANG_ENABLE_OBJC_ARC = YES;
203 | CLANG_WARN_BOOL_CONVERSION = YES;
204 | CLANG_WARN_CONSTANT_CONVERSION = YES;
205 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
206 | CLANG_WARN_EMPTY_BODY = YES;
207 | CLANG_WARN_ENUM_CONVERSION = YES;
208 | CLANG_WARN_INT_CONVERSION = YES;
209 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
210 | CLANG_WARN_UNREACHABLE_CODE = YES;
211 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
212 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
213 | COPY_PHASE_STRIP = NO;
214 | DEBUG_INFORMATION_FORMAT = dwarf;
215 | ENABLE_STRICT_OBJC_MSGSEND = YES;
216 | ENABLE_TESTABILITY = YES;
217 | GCC_C_LANGUAGE_STANDARD = gnu99;
218 | GCC_DYNAMIC_NO_PIC = NO;
219 | GCC_NO_COMMON_BLOCKS = YES;
220 | GCC_OPTIMIZATION_LEVEL = 0;
221 | GCC_PREPROCESSOR_DEFINITIONS = (
222 | "DEBUG=1",
223 | "$(inherited)",
224 | );
225 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
226 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
227 | GCC_WARN_UNDECLARED_SELECTOR = YES;
228 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
229 | GCC_WARN_UNUSED_FUNCTION = YES;
230 | GCC_WARN_UNUSED_VARIABLE = YES;
231 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
232 | MTL_ENABLE_DEBUG_INFO = YES;
233 | ONLY_ACTIVE_ARCH = YES;
234 | SDKROOT = iphoneos;
235 | TARGETED_DEVICE_FAMILY = "1,2";
236 | };
237 | name = Debug;
238 | };
239 | 53F82E711D2E3655003F2259 /* Release */ = {
240 | isa = XCBuildConfiguration;
241 | buildSettings = {
242 | ALWAYS_SEARCH_USER_PATHS = NO;
243 | CLANG_ANALYZER_NONNULL = YES;
244 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
245 | CLANG_CXX_LIBRARY = "libc++";
246 | CLANG_ENABLE_MODULES = YES;
247 | CLANG_ENABLE_OBJC_ARC = YES;
248 | CLANG_WARN_BOOL_CONVERSION = YES;
249 | CLANG_WARN_CONSTANT_CONVERSION = YES;
250 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
251 | CLANG_WARN_EMPTY_BODY = YES;
252 | CLANG_WARN_ENUM_CONVERSION = YES;
253 | CLANG_WARN_INT_CONVERSION = YES;
254 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
255 | CLANG_WARN_UNREACHABLE_CODE = YES;
256 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
257 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
258 | COPY_PHASE_STRIP = NO;
259 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
260 | ENABLE_NS_ASSERTIONS = NO;
261 | ENABLE_STRICT_OBJC_MSGSEND = YES;
262 | GCC_C_LANGUAGE_STANDARD = gnu99;
263 | GCC_NO_COMMON_BLOCKS = YES;
264 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
265 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
266 | GCC_WARN_UNDECLARED_SELECTOR = YES;
267 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
268 | GCC_WARN_UNUSED_FUNCTION = YES;
269 | GCC_WARN_UNUSED_VARIABLE = YES;
270 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
271 | MTL_ENABLE_DEBUG_INFO = NO;
272 | SDKROOT = iphoneos;
273 | TARGETED_DEVICE_FAMILY = "1,2";
274 | VALIDATE_PRODUCT = YES;
275 | };
276 | name = Release;
277 | };
278 | 53F82E731D2E3655003F2259 /* Debug */ = {
279 | isa = XCBuildConfiguration;
280 | buildSettings = {
281 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
282 | INFOPLIST_FILE = Example/Info.plist;
283 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
284 | PRODUCT_BUNDLE_IDENTIFIER = net.citigo.KVParkedTextField.Example;
285 | PRODUCT_NAME = "$(TARGET_NAME)";
286 | };
287 | name = Debug;
288 | };
289 | 53F82E741D2E3655003F2259 /* Release */ = {
290 | isa = XCBuildConfiguration;
291 | buildSettings = {
292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
293 | INFOPLIST_FILE = Example/Info.plist;
294 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
295 | PRODUCT_BUNDLE_IDENTIFIER = net.citigo.KVParkedTextField.Example;
296 | PRODUCT_NAME = "$(TARGET_NAME)";
297 | };
298 | name = Release;
299 | };
300 | /* End XCBuildConfiguration section */
301 |
302 | /* Begin XCConfigurationList section */
303 | 53F82E561D2E3655003F2259 /* Build configuration list for PBXProject "Example" */ = {
304 | isa = XCConfigurationList;
305 | buildConfigurations = (
306 | 53F82E701D2E3655003F2259 /* Debug */,
307 | 53F82E711D2E3655003F2259 /* Release */,
308 | );
309 | defaultConfigurationIsVisible = 0;
310 | defaultConfigurationName = Release;
311 | };
312 | 53F82E721D2E3655003F2259 /* Build configuration list for PBXNativeTarget "Example" */ = {
313 | isa = XCConfigurationList;
314 | buildConfigurations = (
315 | 53F82E731D2E3655003F2259 /* Debug */,
316 | 53F82E741D2E3655003F2259 /* Release */,
317 | );
318 | defaultConfigurationIsVisible = 0;
319 | };
320 | /* End XCConfigurationList section */
321 | };
322 | rootObject = 53F82E531D2E3655003F2259 /* Project object */;
323 | }
324 |
--------------------------------------------------------------------------------