Pages

July 25, 2013

Move UIView to a new Point

It simply moves a UIView to a new location.
You need:
- http://objective-c-functions.blogspot.com/2013/07/move-uiview-to-new-location-with-offset.html


/** Moves a UIView origin to a new point.

 Please note that the anchor point is the origin (usually the top-left corner).

 @param obj A UIView or a subclass of UIView.
 @param coord Target point.
 @see moveView:toPoint:withOffsetFromOrigin:
 @see resizeView:toSize:

 */
+ (void)moveView:(UIView *)obj toPoint:(CGPoint)coord {
    [LMFunctions moveView:obj toPoint:coord withOffsetFromOrigin:CGPointZero];
}



Download the ready-for-use source file (.m) of Move UIView to a new Point

No comments:

Post a Comment