├── textviewplaceholddemo.xcodeproj
├── xcuserdata
│ └── bihongbo.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── textviewplaceholddemo.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── bihongbo.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── textviewplaceholddemo.xccheckout
└── project.pbxproj
├── textviewplaceholddemo
├── ViewController.h
├── AppDelegate.h
├── main.m
├── BBTextView.h
├── Images.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ViewController.m
├── Info.plist
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.xib
├── AppDelegate.m
└── BBTextView.m
├── readme.md
└── textviewplaceholddemoTests
├── Info.plist
└── textviewplaceholddemoTests.m
/textviewplaceholddemo.xcodeproj/xcuserdata/bihongbo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/textviewplaceholddemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/textviewplaceholddemo.xcodeproj/project.xcworkspace/xcuserdata/bihongbo.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bb-coder/BHBTextViewPlaceHolderDemo/HEAD/textviewplaceholddemo.xcodeproj/project.xcworkspace/xcuserdata/bihongbo.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/textviewplaceholddemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // textviewplaceholddemo
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // textviewplaceholddemo
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. 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 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // textviewplaceholddemo
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. 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 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/BBTextView.h:
--------------------------------------------------------------------------------
1 | //
2 | // BBTextView.h
3 | // textviewplaceholddemo
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface BBTextView : UITextView
12 |
13 | /**
14 | * 设置一个文字提示
15 | */
16 | @property (nonatomic,copy) NSString * placeholder;
17 | /**
18 | * 设置提醒文字颜色
19 | */
20 | @property (nonatomic,strong) UIColor * placeColor;
21 |
22 | @end
23 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | #为UITextView加上placeholder属性,使用方法简单.
2 | /**
3 | textview
4 | */
5 | BBTextView * textView = [[BBTextView alloc]initWithFrame:CGRectMake(10, 100, 300, 300)];
6 | textView.backgroundColor = [UIColor orangeColor];
7 | textView.font = [UIFont systemFontOfSize:25];
8 | textView.placeColor = [UIColor lightGrayColor];
9 | textView.placeholder = @"This is placeholder!";
10 | [self.view addSubview:textView];
11 |
12 | /**
13 | textfield
14 | */
15 | UITextField * field = [[UITextField alloc]initWithFrame:CGRectMake(10, 420, 300, 44)];
16 | field.backgroundColor = [UIColor brownColor];
17 | field.placeholder = @"This is placeholder!";
18 | [self.view addSubview:field];
19 |
--------------------------------------------------------------------------------
/textviewplaceholddemo.xcodeproj/xcuserdata/bihongbo.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | textviewplaceholddemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | F7CC0BD31A1F071200F35992
16 |
17 | primary
18 |
19 |
20 | F7CC0BEC1A1F071200F35992
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/Images.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 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/textviewplaceholddemoTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | com.bhb.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/textviewplaceholddemoTests/textviewplaceholddemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // textviewplaceholddemoTests.m
3 | // textviewplaceholddemoTests
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface textviewplaceholddemoTests : XCTestCase
13 |
14 | @end
15 |
16 | @implementation textviewplaceholddemoTests
17 |
18 | - (void)setUp {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown {
24 | // Put teardown code here. This method is called after the invocation of each test method in the class.
25 | [super tearDown];
26 | }
27 |
28 | - (void)testExample {
29 | // This is an example of a functional test case.
30 | XCTAssert(YES, @"Pass");
31 | }
32 |
33 | - (void)testPerformanceExample {
34 | // This is an example of a performance test case.
35 | [self measureBlock:^{
36 | // Put the code you want to measure the time of here.
37 | }];
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // textviewplaceholddemo
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "BBTextView.h"
11 |
12 |
13 | @interface ViewController ()
14 |
15 | @end
16 |
17 | @implementation ViewController
18 |
19 | - (void)viewDidLoad {
20 | [super viewDidLoad];
21 | /**
22 | textview
23 | */
24 | BBTextView * textView = [[BBTextView alloc]initWithFrame:CGRectMake(10, 100, 300, 300)];
25 | textView.backgroundColor = [UIColor orangeColor];
26 | textView.font = [UIFont systemFontOfSize:25];
27 | textView.placeColor = [UIColor lightGrayColor];
28 | textView.placeholder = @"This is placeholder!";
29 | textView.text = @"123";
30 | [self.view addSubview:textView];
31 |
32 | /**
33 | textfield
34 | */
35 | UITextField * field = [[UITextField alloc]initWithFrame:CGRectMake(10, 420, 300, 44)];
36 | field.backgroundColor = [UIColor brownColor];
37 | field.placeholder = @"This is placeholder!";
38 |
39 | [self.view addSubview:field];
40 | }
41 |
42 | - (void)didReceiveMemoryWarning {
43 | [super didReceiveMemoryWarning];
44 | }
45 |
46 | @end
47 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | com.bhb.$(PRODUCT_NAME:rfc1034identifier)
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 |
40 |
41 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/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 |
--------------------------------------------------------------------------------
/textviewplaceholddemo.xcodeproj/project.xcworkspace/xcshareddata/textviewplaceholddemo.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 37C7089C-C66D-449B-8BD6-2CE2D088ACE4
9 | IDESourceControlProjectName
10 | textviewplaceholddemo
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | 1FE0A60B1017B59E9CCF8B9CD740C54A1F0AE653
14 | https://github.com/bb-coder/textviewplaceholderdemo.git
15 |
16 | IDESourceControlProjectPath
17 | textviewplaceholddemo.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | 1FE0A60B1017B59E9CCF8B9CD740C54A1F0AE653
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/bb-coder/textviewplaceholderdemo.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | 1FE0A60B1017B59E9CCF8B9CD740C54A1F0AE653
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | 1FE0A60B1017B59E9CCF8B9CD740C54A1F0AE653
36 | IDESourceControlWCCName
37 | textviewplaceholderdemo
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // textviewplaceholddemo
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. 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 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/BBTextView.m:
--------------------------------------------------------------------------------
1 | //
2 | // BBTextView.m
3 | // textviewplaceholddemo
4 | //
5 | // Created by bb_coder on 14-11-21.
6 | // Copyright (c) 2014年 bb_coder. All rights reserved.
7 | //
8 |
9 | #import "BBTextView.h"
10 |
11 | @interface BBTextView()
12 | {
13 | BOOL _isHidden;
14 | }
15 | @end
16 |
17 | @implementation BBTextView
18 | @synthesize placeColor = _placeColor;
19 |
20 | - (instancetype)initWithFrame:(CGRect)frame
21 | {
22 | self = [super initWithFrame:frame];
23 | if (self) {
24 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeEditing) name:UITextViewTextDidChangeNotification object:nil];
25 | }
26 | return self;
27 | }
28 |
29 | -(void)dealloc{
30 | [[NSNotificationCenter defaultCenter] removeObserver:self];
31 | }
32 |
33 | /**
34 | * 文字提醒set方法
35 | *
36 | */
37 | -(void)setPlaceholder:(NSString *)placeholder
38 | {
39 | _placeholder = placeholder;
40 | [self setNeedsDisplay];
41 | }
42 |
43 | - (void)setText:(NSString *)text{
44 | [super setText:text];
45 | [self changeEditing];
46 | }
47 |
48 | /**
49 | * 设置提醒文字颜色
50 | *
51 | * @return 返回颜色值
52 | */
53 | - (UIColor *)placeColor
54 | {
55 | if (!_placeColor)
56 | _placeColor = [UIColor grayColor];
57 | return _placeColor;
58 | }
59 | - (void)setPlaceColor:(UIColor *)placeColor
60 | {
61 | _placeColor = placeColor;
62 | [self setNeedsDisplay];
63 | }
64 |
65 |
66 | /**
67 | * 画出文字提醒
68 | */
69 | -(void)drawRect:(CGRect)rect
70 | {
71 | [super drawRect:rect];
72 |
73 | if (!_isHidden) {
74 | UIFont * font;
75 | if ([self font]) {
76 | font = [self font];
77 | }
78 | else
79 | {
80 | font = [UIFont systemFontOfSize:12];
81 | }
82 | NSDictionary * dict = @{NSFontAttributeName:font,NSForegroundColorAttributeName:self.placeColor};
83 | [self.placeholder drawAtPoint:CGPointMake(5, 8) withAttributes:dict];
84 | }
85 | }
86 |
87 | /**
88 | * uitextview changetext
89 | */
90 | -(void)changeEditing
91 | {
92 | if ([self.text isEqualToString:@""]) {
93 | _isHidden = NO;
94 | [self setNeedsDisplay];
95 | }
96 | else
97 | {
98 | _isHidden = YES;
99 | [self setNeedsDisplay];
100 | }
101 | }
102 |
103 | @end
104 |
--------------------------------------------------------------------------------
/textviewplaceholddemo/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/textviewplaceholddemo.xcodeproj/xcuserdata/bihongbo.xcuserdatad/xcschemes/textviewplaceholddemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
75 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
94 |
100 |
101 |
102 |
103 |
105 |
106 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/textviewplaceholddemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | F7CC0BDA1A1F071200F35992 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F7CC0BD91A1F071200F35992 /* main.m */; };
11 | F7CC0BDD1A1F071200F35992 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F7CC0BDC1A1F071200F35992 /* AppDelegate.m */; };
12 | F7CC0BE01A1F071200F35992 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F7CC0BDF1A1F071200F35992 /* ViewController.m */; };
13 | F7CC0BE31A1F071200F35992 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F7CC0BE11A1F071200F35992 /* Main.storyboard */; };
14 | F7CC0BE51A1F071200F35992 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F7CC0BE41A1F071200F35992 /* Images.xcassets */; };
15 | F7CC0BE81A1F071200F35992 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = F7CC0BE61A1F071200F35992 /* LaunchScreen.xib */; };
16 | F7CC0BF41A1F071200F35992 /* textviewplaceholddemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F7CC0BF31A1F071200F35992 /* textviewplaceholddemoTests.m */; };
17 | F7CC0BFF1A1F073D00F35992 /* BBTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = F7CC0BFE1A1F073D00F35992 /* BBTextView.m */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXContainerItemProxy section */
21 | F7CC0BEE1A1F071200F35992 /* PBXContainerItemProxy */ = {
22 | isa = PBXContainerItemProxy;
23 | containerPortal = F7CC0BCC1A1F071200F35992 /* Project object */;
24 | proxyType = 1;
25 | remoteGlobalIDString = F7CC0BD31A1F071200F35992;
26 | remoteInfo = textviewplaceholddemo;
27 | };
28 | /* End PBXContainerItemProxy section */
29 |
30 | /* Begin PBXFileReference section */
31 | F7CC0BD41A1F071200F35992 /* textviewplaceholddemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = textviewplaceholddemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
32 | F7CC0BD81A1F071200F35992 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
33 | F7CC0BD91A1F071200F35992 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
34 | F7CC0BDB1A1F071200F35992 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
35 | F7CC0BDC1A1F071200F35992 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
36 | F7CC0BDE1A1F071200F35992 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
37 | F7CC0BDF1A1F071200F35992 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
38 | F7CC0BE21A1F071200F35992 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
39 | F7CC0BE41A1F071200F35992 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
40 | F7CC0BE71A1F071200F35992 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
41 | F7CC0BED1A1F071200F35992 /* textviewplaceholddemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = textviewplaceholddemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
42 | F7CC0BF21A1F071200F35992 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
43 | F7CC0BF31A1F071200F35992 /* textviewplaceholddemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = textviewplaceholddemoTests.m; sourceTree = ""; };
44 | F7CC0BFD1A1F073D00F35992 /* BBTextView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BBTextView.h; sourceTree = ""; };
45 | F7CC0BFE1A1F073D00F35992 /* BBTextView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BBTextView.m; sourceTree = ""; };
46 | /* End PBXFileReference section */
47 |
48 | /* Begin PBXFrameworksBuildPhase section */
49 | F7CC0BD11A1F071200F35992 /* Frameworks */ = {
50 | isa = PBXFrameworksBuildPhase;
51 | buildActionMask = 2147483647;
52 | files = (
53 | );
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | F7CC0BEA1A1F071200F35992 /* Frameworks */ = {
57 | isa = PBXFrameworksBuildPhase;
58 | buildActionMask = 2147483647;
59 | files = (
60 | );
61 | runOnlyForDeploymentPostprocessing = 0;
62 | };
63 | /* End PBXFrameworksBuildPhase section */
64 |
65 | /* Begin PBXGroup section */
66 | F7CC0BCB1A1F071200F35992 = {
67 | isa = PBXGroup;
68 | children = (
69 | F7CC0BD61A1F071200F35992 /* textviewplaceholddemo */,
70 | F7CC0BF01A1F071200F35992 /* textviewplaceholddemoTests */,
71 | F7CC0BD51A1F071200F35992 /* Products */,
72 | );
73 | sourceTree = "";
74 | };
75 | F7CC0BD51A1F071200F35992 /* Products */ = {
76 | isa = PBXGroup;
77 | children = (
78 | F7CC0BD41A1F071200F35992 /* textviewplaceholddemo.app */,
79 | F7CC0BED1A1F071200F35992 /* textviewplaceholddemoTests.xctest */,
80 | );
81 | name = Products;
82 | sourceTree = "";
83 | };
84 | F7CC0BD61A1F071200F35992 /* textviewplaceholddemo */ = {
85 | isa = PBXGroup;
86 | children = (
87 | F7CC0C001A1F190900F35992 /* BBTextView */,
88 | F7CC0BDB1A1F071200F35992 /* AppDelegate.h */,
89 | F7CC0BDC1A1F071200F35992 /* AppDelegate.m */,
90 | F7CC0BDE1A1F071200F35992 /* ViewController.h */,
91 | F7CC0BDF1A1F071200F35992 /* ViewController.m */,
92 | F7CC0BE11A1F071200F35992 /* Main.storyboard */,
93 | F7CC0BE41A1F071200F35992 /* Images.xcassets */,
94 | F7CC0BE61A1F071200F35992 /* LaunchScreen.xib */,
95 | F7CC0BD71A1F071200F35992 /* Supporting Files */,
96 | );
97 | path = textviewplaceholddemo;
98 | sourceTree = "";
99 | };
100 | F7CC0BD71A1F071200F35992 /* Supporting Files */ = {
101 | isa = PBXGroup;
102 | children = (
103 | F7CC0BD81A1F071200F35992 /* Info.plist */,
104 | F7CC0BD91A1F071200F35992 /* main.m */,
105 | );
106 | name = "Supporting Files";
107 | sourceTree = "";
108 | };
109 | F7CC0BF01A1F071200F35992 /* textviewplaceholddemoTests */ = {
110 | isa = PBXGroup;
111 | children = (
112 | F7CC0BF31A1F071200F35992 /* textviewplaceholddemoTests.m */,
113 | F7CC0BF11A1F071200F35992 /* Supporting Files */,
114 | );
115 | path = textviewplaceholddemoTests;
116 | sourceTree = "";
117 | };
118 | F7CC0BF11A1F071200F35992 /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | F7CC0BF21A1F071200F35992 /* Info.plist */,
122 | );
123 | name = "Supporting Files";
124 | sourceTree = "";
125 | };
126 | F7CC0C001A1F190900F35992 /* BBTextView */ = {
127 | isa = PBXGroup;
128 | children = (
129 | F7CC0BFD1A1F073D00F35992 /* BBTextView.h */,
130 | F7CC0BFE1A1F073D00F35992 /* BBTextView.m */,
131 | );
132 | name = BBTextView;
133 | sourceTree = "";
134 | };
135 | /* End PBXGroup section */
136 |
137 | /* Begin PBXNativeTarget section */
138 | F7CC0BD31A1F071200F35992 /* textviewplaceholddemo */ = {
139 | isa = PBXNativeTarget;
140 | buildConfigurationList = F7CC0BF71A1F071200F35992 /* Build configuration list for PBXNativeTarget "textviewplaceholddemo" */;
141 | buildPhases = (
142 | F7CC0BD01A1F071200F35992 /* Sources */,
143 | F7CC0BD11A1F071200F35992 /* Frameworks */,
144 | F7CC0BD21A1F071200F35992 /* Resources */,
145 | );
146 | buildRules = (
147 | );
148 | dependencies = (
149 | );
150 | name = textviewplaceholddemo;
151 | productName = textviewplaceholddemo;
152 | productReference = F7CC0BD41A1F071200F35992 /* textviewplaceholddemo.app */;
153 | productType = "com.apple.product-type.application";
154 | };
155 | F7CC0BEC1A1F071200F35992 /* textviewplaceholddemoTests */ = {
156 | isa = PBXNativeTarget;
157 | buildConfigurationList = F7CC0BFA1A1F071200F35992 /* Build configuration list for PBXNativeTarget "textviewplaceholddemoTests" */;
158 | buildPhases = (
159 | F7CC0BE91A1F071200F35992 /* Sources */,
160 | F7CC0BEA1A1F071200F35992 /* Frameworks */,
161 | F7CC0BEB1A1F071200F35992 /* Resources */,
162 | );
163 | buildRules = (
164 | );
165 | dependencies = (
166 | F7CC0BEF1A1F071200F35992 /* PBXTargetDependency */,
167 | );
168 | name = textviewplaceholddemoTests;
169 | productName = textviewplaceholddemoTests;
170 | productReference = F7CC0BED1A1F071200F35992 /* textviewplaceholddemoTests.xctest */;
171 | productType = "com.apple.product-type.bundle.unit-test";
172 | };
173 | /* End PBXNativeTarget section */
174 |
175 | /* Begin PBXProject section */
176 | F7CC0BCC1A1F071200F35992 /* Project object */ = {
177 | isa = PBXProject;
178 | attributes = {
179 | LastUpgradeCheck = 0610;
180 | ORGANIZATIONNAME = bb_coder;
181 | TargetAttributes = {
182 | F7CC0BD31A1F071200F35992 = {
183 | CreatedOnToolsVersion = 6.1;
184 | };
185 | F7CC0BEC1A1F071200F35992 = {
186 | CreatedOnToolsVersion = 6.1;
187 | TestTargetID = F7CC0BD31A1F071200F35992;
188 | };
189 | };
190 | };
191 | buildConfigurationList = F7CC0BCF1A1F071200F35992 /* Build configuration list for PBXProject "textviewplaceholddemo" */;
192 | compatibilityVersion = "Xcode 3.2";
193 | developmentRegion = English;
194 | hasScannedForEncodings = 0;
195 | knownRegions = (
196 | en,
197 | Base,
198 | );
199 | mainGroup = F7CC0BCB1A1F071200F35992;
200 | productRefGroup = F7CC0BD51A1F071200F35992 /* Products */;
201 | projectDirPath = "";
202 | projectRoot = "";
203 | targets = (
204 | F7CC0BD31A1F071200F35992 /* textviewplaceholddemo */,
205 | F7CC0BEC1A1F071200F35992 /* textviewplaceholddemoTests */,
206 | );
207 | };
208 | /* End PBXProject section */
209 |
210 | /* Begin PBXResourcesBuildPhase section */
211 | F7CC0BD21A1F071200F35992 /* Resources */ = {
212 | isa = PBXResourcesBuildPhase;
213 | buildActionMask = 2147483647;
214 | files = (
215 | F7CC0BE31A1F071200F35992 /* Main.storyboard in Resources */,
216 | F7CC0BE81A1F071200F35992 /* LaunchScreen.xib in Resources */,
217 | F7CC0BE51A1F071200F35992 /* Images.xcassets in Resources */,
218 | );
219 | runOnlyForDeploymentPostprocessing = 0;
220 | };
221 | F7CC0BEB1A1F071200F35992 /* Resources */ = {
222 | isa = PBXResourcesBuildPhase;
223 | buildActionMask = 2147483647;
224 | files = (
225 | );
226 | runOnlyForDeploymentPostprocessing = 0;
227 | };
228 | /* End PBXResourcesBuildPhase section */
229 |
230 | /* Begin PBXSourcesBuildPhase section */
231 | F7CC0BD01A1F071200F35992 /* Sources */ = {
232 | isa = PBXSourcesBuildPhase;
233 | buildActionMask = 2147483647;
234 | files = (
235 | F7CC0BE01A1F071200F35992 /* ViewController.m in Sources */,
236 | F7CC0BDD1A1F071200F35992 /* AppDelegate.m in Sources */,
237 | F7CC0BDA1A1F071200F35992 /* main.m in Sources */,
238 | F7CC0BFF1A1F073D00F35992 /* BBTextView.m in Sources */,
239 | );
240 | runOnlyForDeploymentPostprocessing = 0;
241 | };
242 | F7CC0BE91A1F071200F35992 /* Sources */ = {
243 | isa = PBXSourcesBuildPhase;
244 | buildActionMask = 2147483647;
245 | files = (
246 | F7CC0BF41A1F071200F35992 /* textviewplaceholddemoTests.m in Sources */,
247 | );
248 | runOnlyForDeploymentPostprocessing = 0;
249 | };
250 | /* End PBXSourcesBuildPhase section */
251 |
252 | /* Begin PBXTargetDependency section */
253 | F7CC0BEF1A1F071200F35992 /* PBXTargetDependency */ = {
254 | isa = PBXTargetDependency;
255 | target = F7CC0BD31A1F071200F35992 /* textviewplaceholddemo */;
256 | targetProxy = F7CC0BEE1A1F071200F35992 /* PBXContainerItemProxy */;
257 | };
258 | /* End PBXTargetDependency section */
259 |
260 | /* Begin PBXVariantGroup section */
261 | F7CC0BE11A1F071200F35992 /* Main.storyboard */ = {
262 | isa = PBXVariantGroup;
263 | children = (
264 | F7CC0BE21A1F071200F35992 /* Base */,
265 | );
266 | name = Main.storyboard;
267 | sourceTree = "";
268 | };
269 | F7CC0BE61A1F071200F35992 /* LaunchScreen.xib */ = {
270 | isa = PBXVariantGroup;
271 | children = (
272 | F7CC0BE71A1F071200F35992 /* Base */,
273 | );
274 | name = LaunchScreen.xib;
275 | sourceTree = "";
276 | };
277 | /* End PBXVariantGroup section */
278 |
279 | /* Begin XCBuildConfiguration section */
280 | F7CC0BF51A1F071200F35992 /* Debug */ = {
281 | isa = XCBuildConfiguration;
282 | buildSettings = {
283 | ALWAYS_SEARCH_USER_PATHS = NO;
284 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
285 | CLANG_CXX_LIBRARY = "libc++";
286 | CLANG_ENABLE_MODULES = YES;
287 | CLANG_ENABLE_OBJC_ARC = YES;
288 | CLANG_WARN_BOOL_CONVERSION = YES;
289 | CLANG_WARN_CONSTANT_CONVERSION = YES;
290 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
291 | CLANG_WARN_EMPTY_BODY = YES;
292 | CLANG_WARN_ENUM_CONVERSION = YES;
293 | CLANG_WARN_INT_CONVERSION = YES;
294 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
295 | CLANG_WARN_UNREACHABLE_CODE = YES;
296 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
297 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
298 | COPY_PHASE_STRIP = NO;
299 | ENABLE_STRICT_OBJC_MSGSEND = YES;
300 | GCC_C_LANGUAGE_STANDARD = gnu99;
301 | GCC_DYNAMIC_NO_PIC = NO;
302 | GCC_OPTIMIZATION_LEVEL = 0;
303 | GCC_PREPROCESSOR_DEFINITIONS = (
304 | "DEBUG=1",
305 | "$(inherited)",
306 | );
307 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
308 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
309 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
310 | GCC_WARN_UNDECLARED_SELECTOR = YES;
311 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
312 | GCC_WARN_UNUSED_FUNCTION = YES;
313 | GCC_WARN_UNUSED_VARIABLE = YES;
314 | IPHONEOS_DEPLOYMENT_TARGET = 8.1;
315 | MTL_ENABLE_DEBUG_INFO = YES;
316 | ONLY_ACTIVE_ARCH = YES;
317 | SDKROOT = iphoneos;
318 | };
319 | name = Debug;
320 | };
321 | F7CC0BF61A1F071200F35992 /* Release */ = {
322 | isa = XCBuildConfiguration;
323 | buildSettings = {
324 | ALWAYS_SEARCH_USER_PATHS = NO;
325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
326 | CLANG_CXX_LIBRARY = "libc++";
327 | CLANG_ENABLE_MODULES = YES;
328 | CLANG_ENABLE_OBJC_ARC = YES;
329 | CLANG_WARN_BOOL_CONVERSION = YES;
330 | CLANG_WARN_CONSTANT_CONVERSION = YES;
331 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
332 | CLANG_WARN_EMPTY_BODY = YES;
333 | CLANG_WARN_ENUM_CONVERSION = YES;
334 | CLANG_WARN_INT_CONVERSION = YES;
335 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
336 | CLANG_WARN_UNREACHABLE_CODE = YES;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = YES;
340 | ENABLE_NS_ASSERTIONS = NO;
341 | ENABLE_STRICT_OBJC_MSGSEND = YES;
342 | GCC_C_LANGUAGE_STANDARD = gnu99;
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 8.1;
350 | MTL_ENABLE_DEBUG_INFO = NO;
351 | SDKROOT = iphoneos;
352 | VALIDATE_PRODUCT = YES;
353 | };
354 | name = Release;
355 | };
356 | F7CC0BF81A1F071200F35992 /* Debug */ = {
357 | isa = XCBuildConfiguration;
358 | buildSettings = {
359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
360 | INFOPLIST_FILE = textviewplaceholddemo/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
362 | PRODUCT_NAME = "$(TARGET_NAME)";
363 | };
364 | name = Debug;
365 | };
366 | F7CC0BF91A1F071200F35992 /* Release */ = {
367 | isa = XCBuildConfiguration;
368 | buildSettings = {
369 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
370 | INFOPLIST_FILE = textviewplaceholddemo/Info.plist;
371 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
372 | PRODUCT_NAME = "$(TARGET_NAME)";
373 | };
374 | name = Release;
375 | };
376 | F7CC0BFB1A1F071200F35992 /* Debug */ = {
377 | isa = XCBuildConfiguration;
378 | buildSettings = {
379 | BUNDLE_LOADER = "$(TEST_HOST)";
380 | FRAMEWORK_SEARCH_PATHS = (
381 | "$(SDKROOT)/Developer/Library/Frameworks",
382 | "$(inherited)",
383 | );
384 | GCC_PREPROCESSOR_DEFINITIONS = (
385 | "DEBUG=1",
386 | "$(inherited)",
387 | );
388 | INFOPLIST_FILE = textviewplaceholddemoTests/Info.plist;
389 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
390 | PRODUCT_NAME = "$(TARGET_NAME)";
391 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/textviewplaceholddemo.app/textviewplaceholddemo";
392 | };
393 | name = Debug;
394 | };
395 | F7CC0BFC1A1F071200F35992 /* Release */ = {
396 | isa = XCBuildConfiguration;
397 | buildSettings = {
398 | BUNDLE_LOADER = "$(TEST_HOST)";
399 | FRAMEWORK_SEARCH_PATHS = (
400 | "$(SDKROOT)/Developer/Library/Frameworks",
401 | "$(inherited)",
402 | );
403 | INFOPLIST_FILE = textviewplaceholddemoTests/Info.plist;
404 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
405 | PRODUCT_NAME = "$(TARGET_NAME)";
406 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/textviewplaceholddemo.app/textviewplaceholddemo";
407 | };
408 | name = Release;
409 | };
410 | /* End XCBuildConfiguration section */
411 |
412 | /* Begin XCConfigurationList section */
413 | F7CC0BCF1A1F071200F35992 /* Build configuration list for PBXProject "textviewplaceholddemo" */ = {
414 | isa = XCConfigurationList;
415 | buildConfigurations = (
416 | F7CC0BF51A1F071200F35992 /* Debug */,
417 | F7CC0BF61A1F071200F35992 /* Release */,
418 | );
419 | defaultConfigurationIsVisible = 0;
420 | defaultConfigurationName = Release;
421 | };
422 | F7CC0BF71A1F071200F35992 /* Build configuration list for PBXNativeTarget "textviewplaceholddemo" */ = {
423 | isa = XCConfigurationList;
424 | buildConfigurations = (
425 | F7CC0BF81A1F071200F35992 /* Debug */,
426 | F7CC0BF91A1F071200F35992 /* Release */,
427 | );
428 | defaultConfigurationIsVisible = 0;
429 | };
430 | F7CC0BFA1A1F071200F35992 /* Build configuration list for PBXNativeTarget "textviewplaceholddemoTests" */ = {
431 | isa = XCConfigurationList;
432 | buildConfigurations = (
433 | F7CC0BFB1A1F071200F35992 /* Debug */,
434 | F7CC0BFC1A1F071200F35992 /* Release */,
435 | );
436 | defaultConfigurationIsVisible = 0;
437 | };
438 | /* End XCConfigurationList section */
439 | };
440 | rootObject = F7CC0BCC1A1F071200F35992 /* Project object */;
441 | }
442 |
--------------------------------------------------------------------------------