create a scroll view

Discussion in 'iOS Programming' started by arme, Sep 30, 2008.

  1. arme macrumors member

    Joined:
    Sep 15, 2008
    #1
    i have a large view that contains some lable and textfield. but i can't use UIScrollView. don't work . please help me that solve this problem.
     
  2. SqueegyX macrumors regular

    Joined:
    Mar 24, 2008
    #2
    What "dont work"?

    I think you need to create item for scroll views programatically, outside interface builder. That may or may not be your issue.
     
  3. arme thread starter macrumors member

    Joined:
    Sep 15, 2008
    #3
    how?
    i don't know how work with UIScrollview.tell me?
     
  4. SqueegyX macrumors regular

    Joined:
    Mar 24, 2008
    #4
    Check the docs for the the controls you want to add to the scroll view and see what it takes to create them. When you initialize the controls, use [myScrollView addSubview:myOtherView] to add that view to the scroll view.
     
  5. arme thread starter macrumors member

    Joined:
    Sep 15, 2008
    #5
    hi
    i can create a scroll view but don't work textfield that there is bottom of scroll.
    in fact delegate of text field support on page of view?
    if you an idea please tell me.
    thanks
     
  6. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #6
    I've attached a simple project that shows how to use a scrollview with some controls in it. It's built in IB. There is one line required in code to set the contentSize of the scrollview.
     

    Attached Files:

Share This Page