Click here to Skip to main content
15,882,163 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Draw Line in Image View??

Pls needful for me.
Posted

1 solution

A UIImageView is for displaying an existing image.

It is a subclass of UIView.

The most direct way to draw to a view is via the UIView:

UIView has a -layer method that gives you access to the CALayer of the view.

CALayer has a method -drawInContext: that takes a CGContext that gets drawn on the layer.

If you look at the refrence for CGContext [Core Graphics Context], you will find functions for drawing various things.

For drawing lines, you want the functions that deal with defining and filling "paths".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900