Dynamically set UILabel position ?

  • Hi, Folks,

    I am new to iphone development. Now I am writing some small application for
    study..

    I wonder if there is a way I can dynamically set UILabel Position. for
    example, based on user's input of the location? (Or dynamically set the
    position an control which will display some text message, not necessary to
    be UILabel)

    Any suggestion? Thanks in advance!

    Sincerely,
    Zhao Wang
  • UILabel inherits from UIView and therefore has a frame property.  Try
    setting the UILabel's frame.

    --Andy

    On Jan 23, 2009, at 4:37 PM, Zhao Wang wrote:

    > Hi, Folks,
    >
    > I am new to iphone development. Now I am writing some small
    > application for
    > study..
    >
    > I wonder if there is a way I can dynamically set UILabel Position. for
    > example, based on user's input of the location? (Or dynamically set
    > the
    > position an control which will display some text message, not
    > necessary to
    > be UILabel)
    >
    > Any suggestion? Thanks in advance!
    >
    > Sincerely,
    > Zhao Wang
  • Andy,

    It works! Thank you so much! I appreciate the help! :)

    Sincerely,
    Zhao Wang

    On Fri, Jan 23, 2009 at 5:13 PM, Andy Lee <aglee...> wrote:

    > UILabel inherits from UIView and therefore has a frame property.  Try
    > setting the UILabel's frame.
    >
    > --Andy
    >
    >
    > On Jan 23, 2009, at 4:37 PM, Zhao Wang wrote:
    >
    > Hi, Folks,
    >>
    >> I am new to iphone development. Now I am writing some small application
    >> for
    >> study..
    >>
    >> I wonder if there is a way I can dynamically set UILabel Position. for
    >> example, based on user's input of the location? (Or dynamically set the
    >> position an control which will display some text message, not necessary to
    >> be UILabel)
    >>
    >> Any suggestion? Thanks in advance!
    >>
    >> Sincerely,
    >> Zhao Wang
    >>
    >
    >
previous month january 2009 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Go to today