How to draw a png image to a point?


I wanna draw a png image to a point, anyone can help me? Thanks.


I got it.

UIImage *ballPoits = [UIImage imageNamed:@"ball.png"];
            UIImageView *ballView = [[UIImageView alloc] initWithImage:ballPoits];
            CGRect frame = ballView.frame;
            icon = [[SChartAnnotation alloc] initWithFrame:frame];
            icon.xValue = [NSNumber numberWithInteger:intPointAtX];
            icon.yValue = [NSNumber numberWithInteger:intPointAtY];
            icon.position = SChartAnnotationAboveData;
            icon.xAxis = LineChart.xAxis;
            icon.yAxis = LineChart.yAxis;
            [icon addSubview:ballView];
            icon.alpha = 1.f;
            [LineChart addAnnotation:icon];
            [icon release];
            [ballView release];