Simple question: I am creating an iOS app and the view controller calculates some coordinates that it should pass to the view. I am using the UIView’s drawRect method, so my question is how should I send data to the view? I am aware of delegates and NSNotificationCenter, but I feel like there should be a simpler way since this is a part of model-view-controller. If not, then that is OK, I was just wondering. Thanks!
Simple question: I am creating an iOS app and the view controller calculates some
Share
I would declare properties in UIView, and change the values from UIViewController if anything needs to be changed.