Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add image to Textview? #47

Closed
bintu1234 opened this issue Apr 5, 2016 · 3 comments
Closed

How to add image to Textview? #47

bintu1234 opened this issue Apr 5, 2016 · 3 comments

Comments

@bintu1234
Copy link

HI How to add border to text view i tried with textview methods like below
self.textView.layer.borderColor=[UIColor redColor].CGColor;
and also tried with the image like below
self.textView.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"separator.png"]];
but it is not showing any modifications. can any body please help me how to add border to text view
like below

textview

@WarisSaqi
Copy link

@bintu1234 , sorry for late reply i am little busy.
Go into SOMessageInputView.m then there is a method named adjustInputView and add these lines in the end of the method

    self.textBgImageView.layer.cornerRadius = 5.0;

    self.textBgImageView.layer.masksToBounds = YES;

    self.textBgImageView.layer.borderColor = [UIColor grayColor].CGColor;

    self.textBgImageView.layer.borderWidth = 2.0;

    self.textBgImageView.layer.masksToBounds = YES;

@bintu1234
Copy link
Author

@WarisSaqi Thank you very much.

@WarisSaqi
Copy link

Kindly close this close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants