iOS : How to make a CGRect as visible rect for UIView? -


i drawing line graph in uiview width of 1200pixels. can visible 320pixels. how can make rectangle starting x=880 , width = 320 visible?.

you can draw graph @ 880px using following way.

step 1 : take uiscrollview width = 1200.

step 2 : add uiview in uiscrollview having x position = 880 , width = 320;

now can draw graph on uiview. received output same want.

hope you.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -