The following example shows how to pass CGPoint by reference in Objective-C.

Class Interface

@interface
  -(void)multiplyX:(CGPoint *)point by:(float)a
@end

Class Implementation

@implementation
-(void)multiplyX:(CGPoint *)point by:(float)a {
   (*point).x = (*point).x * a;
}
@end

Read full article here >>