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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -