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

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

matplotlib - PYTHON: Annotate boxes disapear dependant on range -