iphone - Find the position of subview in a View -


goal : how can find position of subview in view. wants find out upper left (x,y)position of scrollbar in view, using navigation bar in application effect on positioning of subviews top?

i know how find height , width of subview

cgsize viewsize = scrollview.frame.size; height=viewsize.height; width=viewsize.width; 

what you're looking probably:

cgpoint viewposition = scrollview.frame.origin; x=viewposition.x; y=viewposition.y; 

but if you're looking translate view's coordinate system, use:

- (cgpoint)convertpoint:(cgpoint)point toview:(uiview *)view 

and pass point , view wish translate.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -