objective c - Line that follows a view? -


i trying create uiview , connected line (uibezier?), center point . when view moving animation, ever moves , line continuously keeps connecting center , means changing length , angle seamlessly while stay between center , view.

so know kinds of manipulation views, know how draw lines cashapelayer , , uibezierpath , simple way , connect line centre , forget it? (= can play view , line follow )

i think easiest way put view superview of custom view subclass , override -drawrect: of superview.

then easy position of subview, center of superview , draw line.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -