GithubHelp home page GithubHelp logo

danielamitay / dalinedtextview Goto Github PK

View Code? Open in Web Editor NEW
159.0 159.0 26.0 209 KB

DALinedTextView is a UITextView subclass that draws ruled lines to the view, similar to iOS' built-in Notes app. The lines conform to the appropriate line-height for the currently set UIFont.

License: Other

Objective-C 100.00%

dalinedtextview's People

Contributors

danielamitay avatar mthuong 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  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  avatar  avatar  avatar  avatar  avatar

dalinedtextview's Issues

iOS7 lineHeight issue

Does not work on iOS with uifont besides systemfont

With self.textView.font = [UIFont fontWithName:@"HelveticaNeue" size:20]; lines does not match the letters...

ios simulator screen shot 28 09 2013 12 15 58

iOS7

Does not work on iOS with uifont besides systemfont

Can you put in some placeholder too

Thanks for the component. I wish there were some placeholder and its colour property with the textview. I hope, you will add it someday.. Thanks..

DALinedTextView does not scroll the lines created in drawRect when we show the keyboard and scroll the text up to show the caret

Hi,

I have sent an email to Daniel on [email protected], I was hoping for a response and I would love to solve the following problem. I have modified the DALinedTextView and attached a copy to demonstrate the issue. Please let me know if the link does not work.

https://www.dropbox.com/s/pso8cn18bb11axh/DALinedTextView.zip?m=

The problem is when we want to display the keyboard and make sure that the caret is above the keyboard frame very similarly to how it works on the notes App on iOS6 also when you keep pressing the enter key the caret should always be displayed above the keyboard with slight animation.

I have implemented this in the file above, however when we scroll the text up pragmatically the lines created in the drawRect is not animated up as well. I have tried using sub layers or views but it does not work properlly also, I can work out how I can get the lines to scroll up when you scroll the text up.

I have been on this issue for sometime as I had implemented my textview very similarly to the DALinedTextView.

I only care about iOS7 but would like to implement the exact behavior of the notes app as it was done on iOS 6

Thanks,

Wael

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.