Repository: iThinkerYZ/YZInputView Branch: master Commit: ce546ab47f02 Files: 20 Total size: 36.3 KB Directory structure: gitextract_j7ydq2_z/ ├── .gitignore ├── InputView/ │ ├── YZInputView.h │ └── YZInputView.m ├── LICENSE ├── README.md └── YZInputViewDemo/ ├── YZInputViewDemo/ │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets/ │ │ ├── AppIcon.appiconset/ │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── plus.imageset/ │ │ │ └── Contents.json │ │ ├── smail.imageset/ │ │ │ └── Contents.json │ │ └── sound.imageset/ │ │ └── Contents.json │ ├── Base.lproj/ │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m └── YZInputViewDemo.xcodeproj/ ├── project.pbxproj └── project.xcworkspace/ └── contents.xcworkspacedata ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ # Xcode # # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore ## Build generated build/ DerivedData/ ## Various settings *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata/ ## Other *.moved-aside *.xcuserstate ## Obj-C/Swift specific *.hmap *.ipa *.dSYM.zip *.dSYM # CocoaPods # # We recommend against adding the Pods directory to your .gitignore. However # you should judge for yourself, the pros and cons are mentioned at: # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control # # Pods/ # Carthage # # Add this line if you want to avoid checking in source code from Carthage dependencies. # Carthage/Checkouts Carthage/Build # fastlane # # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the # screenshots whenever they are needed. # For more information about the recommended setup visit: # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md fastlane/report.xml fastlane/screenshots #Code Injection # # After new code Injection tools there's a generated folder /iOSInjectionProject # https://github.com/johnno1962/injectionforxcode iOSInjectionProject/ ================================================ FILE: InputView/YZInputView.h ================================================ // // YZInputView.h // YZInputView // // Created by yz on 16/8/1. // Copyright © 2016年 yz. All rights reserved. // #import @interface YZInputView : UITextView /** * textView最大行数 */ @property (nonatomic, assign) NSUInteger maxNumberOfLines; /** * 文字高度改变block → 文字高度改变会自动调用 * block参数(text) → 文字内容 * block参数(textHeight) → 文字高度 */ @property (nonatomic, strong) void(^yz_textHeightChangeBlock)(NSString *text,CGFloat textHeight); /** * 设置圆角 */ @property (nonatomic, assign) NSUInteger cornerRadius; /** * 占位文字 */ @property (nonatomic, strong) NSString *placeholder; /** * 占位文字颜色 */ @property (nonatomic, strong) UIColor *placeholderColor; @end ================================================ FILE: InputView/YZInputView.m ================================================ // // YZInputView.m // YZInputView // // Created by yz on 16/8/1. // Copyright © 2016年 yz. All rights reserved. // #import "YZInputView.h" @interface YZInputView () /** * 占位文字View: 为什么使用UITextView,这样直接让占位文字View = 当前textView,文字就会重叠显示 */ @property (nonatomic, weak) UITextView *placeholderView; /** * 文字高度 */ @property (nonatomic, assign) NSInteger textH; /** * 文字最大高度 */ @property (nonatomic, assign) NSInteger maxTextH; @end @implementation YZInputView - (UITextView *)placeholderView { if (_placeholderView == nil) { UITextView *placeholderView = [[UITextView alloc] init]; _placeholderView = placeholderView; _placeholderView.scrollEnabled = NO; _placeholderView.showsHorizontalScrollIndicator = NO; _placeholderView.showsVerticalScrollIndicator = NO; _placeholderView.userInteractionEnabled = NO; _placeholderView.font = self.font; _placeholderView.textColor = [UIColor lightGrayColor]; _placeholderView.backgroundColor = [UIColor clearColor]; [self addSubview:placeholderView]; } return _placeholderView; } - (void)awakeFromNib { [self setup]; } - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { [self setup]; } return self; } - (void)setup { self.scrollEnabled = NO; self.scrollsToTop = NO; self.showsHorizontalScrollIndicator = NO; self.enablesReturnKeyAutomatically = YES; self.layer.borderWidth = 1; self.layer.cornerRadius = 5; self.layer.borderColor = [UIColor lightGrayColor].CGColor; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(textDidChange) name:UITextViewTextDidChangeNotification object:self]; } - (void)setMaxNumberOfLines:(NSUInteger)maxNumberOfLines { _maxNumberOfLines = maxNumberOfLines; // 计算最大高度 = (每行高度 * 总行数 + 文字上下间距) _maxTextH = ceil(self.font.lineHeight * maxNumberOfLines + self.textContainerInset.top + self.textContainerInset.bottom); } - (void)setCornerRadius:(NSUInteger)cornerRadius { _cornerRadius = cornerRadius; self.layer.cornerRadius = cornerRadius; } - (void)setYz_textHeightChangeBlock:(void (^)(NSString *, CGFloat))yz_textChangeBlock { _yz_textHeightChangeBlock = yz_textChangeBlock; [self textDidChange]; } - (void)setPlaceholderColor:(UIColor *)placeholderColor { _placeholderColor = placeholderColor; self.placeholderView.textColor = placeholderColor; } - (void)setPlaceholder:(NSString *)placeholder { _placeholder = placeholder; self.placeholderView.text = placeholder; } - (void)textDidChange { // 占位文字是否显示 self.placeholderView.hidden = self.text.length > 0; NSInteger height = ceilf([self sizeThatFits:CGSizeMake(self.bounds.size.width, MAXFLOAT)].height); if (_textH != height) { // 高度不一样,就改变了高度 // 最大高度,可以滚动 self.scrollEnabled = height > _maxTextH && _maxTextH > 0; _textH = height; if (_yz_textHeightChangeBlock && self.scrollEnabled == NO) { _yz_textHeightChangeBlock(self.text,height); [self.superview layoutIfNeeded]; self.placeholderView.frame = self.bounds; } } } - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; } @end ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) 2016 iThinker_YZ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # YZInputView 类似微信文本输入框实现,底部评论输入View,随着文字的增加,textView自增长高度 ================================================ FILE: YZInputViewDemo/YZInputViewDemo/AppDelegate.h ================================================ // // AppDelegate.h // YZInputViewDemo // // Created by yz on 16/8/1. // Copyright © 2016年 yz. All rights reserved. // #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end ================================================ FILE: YZInputViewDemo/YZInputViewDemo/AppDelegate.m ================================================ // // AppDelegate.m // YZInputViewDemo // // Created by yz on 16/8/1. // Copyright © 2016年 yz. All rights reserved. // #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. return YES; } - (void)applicationWillResignActive:(UIApplication *)application { // 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. // 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. } - (void)applicationDidEnterBackground:(UIApplication *)application { // 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. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - (void)applicationWillEnterForeground:(UIApplication *)application { // 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. } - (void)applicationDidBecomeActive:(UIApplication *)application { // 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. } - (void)applicationWillTerminate:(UIApplication *)application { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } @end ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Assets.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "idiom" : "iphone", "size" : "29x29", "scale" : "2x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "3x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "2x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "3x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "2x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Assets.xcassets/Contents.json ================================================ { "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Assets.xcassets/plus.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "plus.png", "scale" : "1x" }, { "idiom" : "universal", "scale" : "2x" }, { "idiom" : "universal", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Assets.xcassets/smail.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "smail.png", "scale" : "1x" }, { "idiom" : "universal", "scale" : "2x" }, { "idiom" : "universal", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Assets.xcassets/sound.imageset/Contents.json ================================================ { "images" : [ { "idiom" : "universal", "filename" : "sound.png", "scale" : "1x" }, { "idiom" : "universal", "scale" : "2x" }, { "idiom" : "universal", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Base.lproj/LaunchScreen.storyboard ================================================ ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Base.lproj/Main.storyboard ================================================ ================================================ FILE: YZInputViewDemo/YZInputViewDemo/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight ================================================ FILE: YZInputViewDemo/YZInputViewDemo/ViewController.h ================================================ // // ViewController.h // YZInputViewDemo // // Created by yz on 16/8/1. // Copyright © 2016年 yz. All rights reserved. // #import @interface ViewController : UIViewController @end ================================================ FILE: YZInputViewDemo/YZInputViewDemo/ViewController.m ================================================ // // ViewController.m // YZInputViewDemo // // Created by yz on 16/8/1. // Copyright © 2016年 yz. All rights reserved. // #import "ViewController.h" #import "YZInputView.h" @interface ViewController () @property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomCons; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomHCons; @property (weak, nonatomic) IBOutlet YZInputView *inputView; @end @implementation ViewController - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.view endEditing:YES]; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // 监听键盘弹出 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillChangeFrame:) name:UIKeyboardWillChangeFrameNotification object:nil]; // 设置文本框占位文字 _inputView.placeholder = @"小码哥 iOS培训 吖了个峥"; _inputView.placeholderColor = [UIColor redColor]; // 监听文本框文字高度改变 _inputView.yz_textHeightChangeBlock = ^(NSString *text,CGFloat textHeight){ // 文本框文字高度改变会自动执行这个【block】,可以在这【修改底部View的高度】 // 设置底部条的高度 = 文字高度 + textView距离上下间距约束 // 为什么添加10 ?(10 = 底部View距离上(5)底部View距离下(5)间距总和) _bottomHCons.constant = textHeight + 10; }; // 设置文本框最大行数 _inputView.maxNumberOfLines = 4; } // 键盘弹出会调用 - (void)keyboardWillChangeFrame:(NSNotification *)note { // 获取键盘frame CGRect endFrame = [note.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; // 获取键盘弹出时长 CGFloat duration = [note.userInfo[UIKeyboardAnimationDurationUserInfoKey] floatValue]; CGFloat screenH = [UIScreen mainScreen].bounds.size.height; // 修改底部视图距离底部的间距 _bottomCons.constant = endFrame.origin.y != screenH?endFrame.size.height:0; // 约束动画 [UIView animateWithDuration:duration animations:^{ [self.view layoutIfNeeded]; }]; } @end ================================================ FILE: YZInputViewDemo/YZInputViewDemo/main.m ================================================ // // main.m // YZInputViewDemo // // Created by yz on 16/8/1. // Copyright © 2016年 yz. All rights reserved. // #import #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } ================================================ FILE: YZInputViewDemo/YZInputViewDemo.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ EC7C2BCF1D4FA49200DA94EE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = EC7C2BCE1D4FA49200DA94EE /* main.m */; }; EC7C2BD21D4FA49200DA94EE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = EC7C2BD11D4FA49200DA94EE /* AppDelegate.m */; }; EC7C2BD51D4FA49200DA94EE /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = EC7C2BD41D4FA49200DA94EE /* ViewController.m */; }; EC7C2BD81D4FA49200DA94EE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EC7C2BD61D4FA49200DA94EE /* Main.storyboard */; }; EC7C2BDA1D4FA49200DA94EE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC7C2BD91D4FA49200DA94EE /* Assets.xcassets */; }; EC7C2BDD1D4FA49200DA94EE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EC7C2BDB1D4FA49200DA94EE /* LaunchScreen.storyboard */; }; EC7C2BEB1D4FB87B00DA94EE /* YZInputView.m in Sources */ = {isa = PBXBuildFile; fileRef = EC7C2BEA1D4FB87B00DA94EE /* YZInputView.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ EC7C2BCA1D4FA49200DA94EE /* YZInputViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YZInputViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; EC7C2BCE1D4FA49200DA94EE /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; EC7C2BD01D4FA49200DA94EE /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; EC7C2BD11D4FA49200DA94EE /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; EC7C2BD31D4FA49200DA94EE /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; EC7C2BD41D4FA49200DA94EE /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; EC7C2BD71D4FA49200DA94EE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; EC7C2BD91D4FA49200DA94EE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; EC7C2BDC1D4FA49200DA94EE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; EC7C2BDE1D4FA49200DA94EE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; EC7C2BE91D4FB87B00DA94EE /* YZInputView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YZInputView.h; sourceTree = ""; }; EC7C2BEA1D4FB87B00DA94EE /* YZInputView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YZInputView.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ EC7C2BC71D4FA49200DA94EE /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ EC7C2BC11D4FA49200DA94EE = { isa = PBXGroup; children = ( EC7C2BE81D4FB87B00DA94EE /* InputView */, EC7C2BCC1D4FA49200DA94EE /* YZInputViewDemo */, EC7C2BCB1D4FA49200DA94EE /* Products */, ); sourceTree = ""; }; EC7C2BCB1D4FA49200DA94EE /* Products */ = { isa = PBXGroup; children = ( EC7C2BCA1D4FA49200DA94EE /* YZInputViewDemo.app */, ); name = Products; sourceTree = ""; }; EC7C2BCC1D4FA49200DA94EE /* YZInputViewDemo */ = { isa = PBXGroup; children = ( EC7C2BD01D4FA49200DA94EE /* AppDelegate.h */, EC7C2BD11D4FA49200DA94EE /* AppDelegate.m */, EC7C2BD31D4FA49200DA94EE /* ViewController.h */, EC7C2BD41D4FA49200DA94EE /* ViewController.m */, EC7C2BD61D4FA49200DA94EE /* Main.storyboard */, EC7C2BD91D4FA49200DA94EE /* Assets.xcassets */, EC7C2BDB1D4FA49200DA94EE /* LaunchScreen.storyboard */, EC7C2BDE1D4FA49200DA94EE /* Info.plist */, EC7C2BCD1D4FA49200DA94EE /* Supporting Files */, ); path = YZInputViewDemo; sourceTree = ""; }; EC7C2BCD1D4FA49200DA94EE /* Supporting Files */ = { isa = PBXGroup; children = ( EC7C2BCE1D4FA49200DA94EE /* main.m */, ); name = "Supporting Files"; sourceTree = ""; }; EC7C2BE81D4FB87B00DA94EE /* InputView */ = { isa = PBXGroup; children = ( EC7C2BE91D4FB87B00DA94EE /* YZInputView.h */, EC7C2BEA1D4FB87B00DA94EE /* YZInputView.m */, ); name = InputView; path = ../InputView; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ EC7C2BC91D4FA49200DA94EE /* YZInputViewDemo */ = { isa = PBXNativeTarget; buildConfigurationList = EC7C2BE11D4FA49200DA94EE /* Build configuration list for PBXNativeTarget "YZInputViewDemo" */; buildPhases = ( EC7C2BC61D4FA49200DA94EE /* Sources */, EC7C2BC71D4FA49200DA94EE /* Frameworks */, EC7C2BC81D4FA49200DA94EE /* Resources */, ); buildRules = ( ); dependencies = ( ); name = YZInputViewDemo; productName = YZInputViewDemo; productReference = EC7C2BCA1D4FA49200DA94EE /* YZInputViewDemo.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ EC7C2BC21D4FA49200DA94EE /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 0720; ORGANIZATIONNAME = yz; TargetAttributes = { EC7C2BC91D4FA49200DA94EE = { CreatedOnToolsVersion = 7.2.1; DevelopmentTeam = YKYB5YMSRP; }; }; }; buildConfigurationList = EC7C2BC51D4FA49200DA94EE /* Build configuration list for PBXProject "YZInputViewDemo" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = EC7C2BC11D4FA49200DA94EE; productRefGroup = EC7C2BCB1D4FA49200DA94EE /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( EC7C2BC91D4FA49200DA94EE /* YZInputViewDemo */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ EC7C2BC81D4FA49200DA94EE /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( EC7C2BDD1D4FA49200DA94EE /* LaunchScreen.storyboard in Resources */, EC7C2BDA1D4FA49200DA94EE /* Assets.xcassets in Resources */, EC7C2BD81D4FA49200DA94EE /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ EC7C2BC61D4FA49200DA94EE /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( EC7C2BD51D4FA49200DA94EE /* ViewController.m in Sources */, EC7C2BD21D4FA49200DA94EE /* AppDelegate.m in Sources */, EC7C2BEB1D4FB87B00DA94EE /* YZInputView.m in Sources */, EC7C2BCF1D4FA49200DA94EE /* main.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ EC7C2BD61D4FA49200DA94EE /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( EC7C2BD71D4FA49200DA94EE /* Base */, ); name = Main.storyboard; sourceTree = ""; }; EC7C2BDB1D4FA49200DA94EE /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( EC7C2BDC1D4FA49200DA94EE /* Base */, ); name = LaunchScreen.storyboard; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ EC7C2BDF1D4FA49200DA94EE /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.2; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; name = Debug; }; EC7C2BE01D4FA49200DA94EE /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.2; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; name = Release; }; EC7C2BE21D4FA49200DA94EE /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = YZInputViewDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = iThinker.YZInputViewDemo; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; }; EC7C2BE31D4FA49200DA94EE /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = YZInputViewDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = iThinker.YZInputViewDemo; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ EC7C2BC51D4FA49200DA94EE /* Build configuration list for PBXProject "YZInputViewDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( EC7C2BDF1D4FA49200DA94EE /* Debug */, EC7C2BE01D4FA49200DA94EE /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; EC7C2BE11D4FA49200DA94EE /* Build configuration list for PBXNativeTarget "YZInputViewDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( EC7C2BE21D4FA49200DA94EE /* Debug */, EC7C2BE31D4FA49200DA94EE /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = EC7C2BC21D4FA49200DA94EE /* Project object */; } ================================================ FILE: YZInputViewDemo/YZInputViewDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================