I have a series of subclasses of UIView that are added as subzones. Each semblance can be dragged and dropped. When they are dropped (affected by Ened), I need to run the method in viewController to do some work. I currently have touchEvents in every subview class. Should I handle these touch events in the viewController, or should I pass a pointer to the parent viewController as a property of each class that I added as subviews?
UPDATE: Or is it work for NotificationCenter?
UIViewController UIResponder, . UIViewController, UIView, " "; .
, -touchesEnded:withEvent:, UIViewController. - , -touchesEnded:withEvent: ( ) .
-touchesEnded:withEvent:
uiview uiviewcontroller, . , .
MVC, , V (/ ), V, - ( ..), , C, M.
Source: https://habr.com/ru/post/1762317/More articles:Incrementing folder names such as 5.0.0.x in C # - c #C #: Android phone control - androidUsing reflection to obtain a method; interface type method parameters not found - javaASP.NET MVC: how can I visualize a flow control? - asp.netWhat are some quality graph libraries for C? - cCapture Android SMS - androidcalling exe from C ++ (windows) - c ++Storing user id in session variable - authenticationСтраница ASP.NET для отображения статуса сервера - asp.netJQuery canonical approach for dynamically enabling / disabling form submission buttons - javascriptAll Articles