Forum Xamarin Xamarin.iOS

ItemAppearing Event Not Working on iOS Native Cell Renderer

hughyuhughyu USMember

Good day, I got a problem on triggering ListView's "ItemAppearing" event from iOS Custom Native Cell Renderer
(Renderer Sample: )

I have created both Android and iOS Application based on this Native Cell Renderer sample, but only Android Cell Renderer is able to trigger the ItemAppearing event.
Hoping someone could look into this problem and give me a hand with this. Thanks a lot.
Tagged: xamarin.forms listview renderer xamarin.ios ItemAppearing


  • AlanSpiresAlanSpires USBeta ✭✭

    You can use reflection to call the method Xam uses but doesn't expose.

            public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
                // you code....
                // internal xam method
                var internalMethod = item.GetType().GetMethod("SendAppearing", BindingFlags.NonPublic | BindingFlags.Instance);
                internalMethod.Invoke(item, new object[] {});
Sign In or Register to comment.