PDA

View Full Version : Change Location of Scrollview




rupesh.swami
Apr 1, 2009, 02:08 AM
hi all
i am new to iPhone
i want to change the location of scrollvew. what is the step behind the change the location of scrollview. i use following statement
scrollViewObject.frame.top=10; or scrollViewObject.frame.y=10;
but above statement give compile time error "CGRect has no member named top/y"



dejo
Apr 1, 2009, 02:36 AM
frame is a CGRect:
http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect