(iphone) non-editable UITextView “bookmark”

Discussion in 'iOS Programming' started by gl777, Aug 6, 2009.

  1. gl777 macrumors newbie

    Aug 6, 2009

    I am new to iphone dev and I'm trying to create a "bookmark" in an NON-editable UITextView. More specifically - I go to the view with the UITextView, scroll maybe halfway(or to some other point) through the text, leave that view(or the app) and when I come back the UITextView is showing where I left off.

    I have everything figured out except how to 'capture' the point that the NON-editable UITextView is scrolled to when leaving the view. I've tried selectedRange in viewWillDisappear in every way I could think of.

    Any ideas on this would be greatly appreciated, I've been struggling for almost two days.

    I hope I'm explaining that clearly enough.

    Thanks in advance!! GL
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    UITextView is a subclass of UIScrollView. Save the UIScrollView contentOffset.

Share This Page