UITextView-Placeholder icon indicating copy to clipboard operation
UITextView-Placeholder copied to clipboard

Change Usage section of the README.md

Open vitonzhangtt opened this issue 7 years ago • 1 comments

My project is in Objective-C.

I got an error "'UITextView+Placeholder/UITextView+Placeholder.h' file not found" after importing this library by 'pod install'.

Then I found that the right way to import "<UITextView_Placeholder/UITextView+Placeholder.h>". Expect to add another item in the Usage section; like the following:

Import Dynamic Framework:

e.g. If you're using CocoaPods with use_frameworks! flag.

@import UITextView_Placeholder;
Import Static Library:

#import <UITextView+Placeholder/UITextView+Placeholder.h>

Import by pod:
#import <UITextView_Placeholder/UITextView+Placeholder.h>

vitonzhangtt avatar Jan 19 '18 04:01 vitonzhangtt

@vitonzhangtt you can use @import UITextView_Placeholder; when using use_framework!. It is documented on README.md

devxoul avatar Jan 19 '18 14:01 devxoul