Giter Club home page Giter Club logo

abcautocompletetextview's Introduction

ABCAutoCompleteTextView

A subclass of UITextView that allows for autocompletion of hashtags and username mentions.

abcautocompletetextview's People

Contributors

adambco 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

Watchers

 avatar  avatar  avatar  avatar

abcautocompletetextview's Issues

can't show username or hashtags in multiline.

hello,
First of all Thank you so much for providing such a grate Class.
and i want to make this even better by letting you know that this class has small issue.
it shows usernames & tags for single line with no newline character. but when i try with that ,the issue occurs.

here i tried and overcome this issue.

in - (void)textChanged:(NSNotification *)notification ,
line Number(around) = 61 or 62
in NSArray *wordsInSentence = [self.text componentsSeparatedByString:@" "]; this is the Bug (as i'm thinking)
above code will not separate a string with Newlinecharacter (e.g. '\n' , '\n\n\n') it will just separate string having " " (whitespace). So, when execution comes at if ([string hasPrefix:@"@"]), string might be like "\n\n@" or "\n%@". so, it won't display username or tags.

Bellow is Replacement,

So, bellow code removes both the whitespace & newline character from 'self.text'
NSArray *wordsInSentence = [self.text componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

kindly check this out and let me know, what do you think?

sorry for my poor english...

User Tag not working

This is a awesome library. But I have one issue with this user tag not working when in between text.
for example : abc tex @A xyztext ,
Please help me if any solution.
Sorry for my poor english.

Thank You.

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.