whenever type in text view in application, cursor jumps wherever (and should be,) end of text.
line in loop seems issue. if comment out that, runs fine.
code:
- (void)textviewdidchange:(uitextview *)textview { (nsstring *key in shortcuts) { typeview.text = [typeview.text stringbyreplacingoccurrencesofstring:key withstring:[shortcuts objectforkey:key]]; } } does have simple solution (ie, there's method in sdk i'm overlooking that'll me,) or going have determine cursors position before loop , put afterwards myself?
edit: i've added if before line make sure there's replace beforehand, now.
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment