Code Monkey home page Code Monkey logo

growingtextviewhandler-objc's People

Contributors

hsusmita avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

growingtextviewhandler-objc's Issues

How can I use this without passing constraints?

Hi there, first of all, thank you so much this awesome thing. I found it easy to use and setup (if you're using AutoLayout & StoryBoard). However, in my app, I'm not having a storyboard (or XIBs ) and AutoLayout at all. However to use this handler, I need to pass constraints. How can I use without passing it?

In this method, - (id)initWithTextView:(UITextView *)textView withHeightConstraint:(NSLayoutConstraint *)heightConstraint, if I pass nil for heightConstraint then it'll stop growing.

Is it possible, even if not, then just give me an idea so that I can achieve this on my self.

Thanks!

Suggestion: respond to UITextViewTextDidChangeNotification, instead of delegate

Great library! A suggestion:

If you respond to UITextViewTextDidChangeNotification inside GrowingTextViewHandler, you won't even need to deal with the textViewDelegate. Makes it even easier/faster to set up

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(resizeTextViewWithAnimation:)
name:UITextViewTextDidChangeNotification
object:self.growingTextView];

Provide a method to resize textview when text is set programmatically

According to current usage, client code needs to call - (void)resizeTextViewWithAnimation:(BOOL)animated in the UITextViewDelegate method - (void)textViewDidChange:(UITextView *)textView. But this delegate method is not invoked when text is set programmatically. There should be a way to resize textview when text is set

Fix extra top content inset of UITextView for deployment target 8.3

For deployment target 8.3, there is unwanted top content inset for the UITextView. This problem disappears if the UIViewController property automaticallyAdjustsScrollViewInsets is set to NO. There is a need of another solution which is independent of any external property.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.