I have a question about Fragment in Android, and SubView in iOS. On Android I use the Callback interface to send an action from Fragment to parent activity. How to call a method in superView from subView? OR is there in iOS a pattern similar to Fragment?
Asked
Active
Viewed 614 times
1 Answers
0
It looks like UIViewController
is the answer. Check out these sources for some example code:
-
i am UiViewController , i don`t know how to callback action from subView to Super !!! – Ramy Sabry Jul 14 '14 at 01:24
-
1http://stackoverflow.com/a/1034396/379245 You can just get the parent view's controller. – BVB Jul 15 '14 at 03:01
-
1Thanks , i have used protocol and implement it on super View and working fine as Interface on java / android – Ramy Sabry Jul 15 '14 at 20:29