Is it possible to draw a gradient in a path on the iPhone?

I'm looking for a replacement of the mac os x method 

```
-(void)drawInBezierPath:(NSBezierPath *)path relativeCenterPosition:(NSPoint)relativeCenterPosition of NSGradient.

```