ivanobilenchi / ictextview Goto Github PK
View Code? Open in Web Editor NEWUITextView subclass supporting string/regex search and highlighting
Home Page: http://blog.ib-soft.net/2013/11/ictextview-uitextview-with-search.html
License: MIT License
UITextView subclass supporting string/regex search and highlighting
Home Page: http://blog.ib-soft.net/2013/11/ictextview-uitextview-with-search.html
License: MIT License
After rotate device from Portrait to Landscape mode, ICTextView every time scroll a little lower.
Hi,It's great for me to search the match text.But if I want to search the text from bottom,how can I control it? How about add a scroll direction control?
In 1.1.0 version setContentOffset for this, but in 2.0 version it's not working, always set 0 for y, tested in iOS 9.
I would use the old version, but they do not work correctly in the iOS 9.
How set Y in viewDidload?
Please tell me.
Thanks for the great work. I just wanted to know if there is a way to integrate your class in a UIWebView?
I save ICTextView scroll position like this:
[[NSUserDefaults standardUserDefaults] setFloat:TextView.contentOffset.y forKey:@"ScrollViewPosition"];
And when file run again, setContentOffset in viewDidLoad like this:
[TextView setContentOffset:CGPointMake(0,[[NSUserDefaults standardUserDefaults] floatForKey:@"ScrollViewPosition"]];
But it does not work, it shows above or under the stored position.
What could be wrong?
The primary highlight works fine but the secondary highlight skips every 5 words.
When I use consideringInsets:YES, my text view does not scroll at all in iOS 8.4.
Tried demo project on xcode 6 ios 8.1 simulator - works perfectly, but when i try to import .h and .m files to my existing Swift project (with creating a bridge header) - it compiles successfully, but at runtime throws an error:
[UITextView scrollToString:searchOptions:animated:atScrollPosition:]: unrecognized selector sent to instance 0x12d05f400
2014-11-30 22:24:34.125 RTP Helper[1181:193763] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITextView scrollToString:searchOptions:animated:atScrollPosition:]: unrecognized selector sent to instance 0x12d05f400'
The cursor position should be in the beginning of the text found so the user can edit quickly
I believe initWithCoder has to be implemented to work with Interface Builder. Am I mistaken?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.