Hello,
I'm currenly learning Obj-C and try to find the easiest way to set a position of an control.
So this works to set the object +100px:
[panel setFrame:CGRectMake(
panel.frame.origin.x, panel.frame.origin.y + 100,
panel.bounds.size.width, panel.bounds.size.height)
];
But of course this is painful.
Unfortunately this doesn't work:
panel.frame.origin.y += 100; // Compiler error
[panel setPosY:100]; // has no effect of my control
Isn't there a easy way to set the position?
Many thanks for your help!
Jürgen