Comments (5)
@rashidasgari I cannot reproduce this issue. The test app is unaffected, and so are my other apps using it. Could you provide a code sample or steps to reproduce this?
from ictextview.
Thanks ivan. You are right, the sample app is working fine. Do you thinks
it is because i'm using arabic alphabet?
On Sun, May 11, 2014 at 12:40 AM, Ivano Bilenchi
[email protected]:
@rashidasgari https://github.com/rashidasgari I cannot reproduce this
issue. The test app is unaffected, and so are my other apps using it. Could
you provide a code sample or steps to reproduce this?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-42752929
.
from ictextview.
@rashidasgari That may be it, I never tested it with Arabic. I'll have a look into it tomorrow.
Mind providing a sample text-word pair to help me reproduce it? That may speed things up a bit, especially if this only happens with some search strings (I'm no arabic speaker :p)
from ictextview.
Yeah sure thing. Just copy and paste a piece of text from this link
http://fa.wikipedia.org/wiki/%D8%A7%D9%BE%D9%84_(%D8%B4%D8%B1%DA%A9%D8%AA)
This should do it. I somehow managed to find another way. I dismiss the
keyboard when you hit the search button and display a toolbar to go to the
next word. And in the "(void)scrollRectToVisible:(CGRect)rect
animated:(BOOL)animated
consideringInsets:(BOOL)considerInsets" method i add some value like 50 or
70 to the contentoffset.y. But i think it would be awesome if you could fix
this issue since your work must of helped alot of developers. If you could
find a way to scroll the textview in a way that each dark highlight word is
displayed in the middle of the view.
On Sun, May 11, 2014 at 2:43 PM, Ivano Bilenchi [email protected]:
That may be it, I never tested it with Arabic. I'll have a look into it
tomorrow.Mind providing a sample text-word pair to help me reproduce it? That may
speed things up a bit, especially if this only happens with some search
strings (I'm no arabic speaker :p)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-42766875
.
from ictextview.
@rashidasgari I still didn't manage to reproduce the issue you pointed out. Anyway, I implemented the feature you requested (and other stuff as well). Check out the latest commits.
You can now scroll the primary match in the middle of the text view by calling scrollToMatch:
or scrollToString:
with atScrollPosition:ICTextViewScrollPositionMiddle
.
Let me know if that workarounds the issue you were experiencing. I'll be waiting for feedback before actually confirming this as the stable 1.1.0 version.
from ictextview.
Related Issues (10)
- Work With Interface Builder? HOT 3
- setContentOffset not working correctly.
- How scroll to position? HOT 9
- ICTextView changes position after rotate device from Portrait to Landscape mode. HOT 2
- cursor position HOT 3
- Add a scroll direction would be better ? HOT 3
- Is there a way to integrate this to a webview? HOT 1
- not working with iOS 8 bridged to swift( HOT 2
- consideringInsets:YES results in no scrolling at all. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ictextview.