I have an outlet for UIToolBar, now how do I change it's position via code?

Discussion in 'iOS Development' started by whocaresit, Apr 18, 2009.

  1. whocaresit

    whocaresit New Member

    Joined:
    Mar 11, 2009
    Messages:
    48
    Likes Received:
    0
    I know this is utterly basic, but, I am used to learning by self with experimenting and trials.

    I looked for properties in the completion list, but there is no y or x.

    Any help?
  2. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    Code:
    yourToolbar.frame=CGRectMake([insert your location stuff here])
  3. bddckr

    bddckr Active Member

    Joined:
    Dec 2, 2007
    Messages:
    1,434
    Likes Received:
    18
    Device:
    iPhone 4 (Black)
    Isn't there a .center? And btw: I think one should use UIViewControllers if working with a UIToolBar...

Share This Page