Cannot access custom view component elements in iOS

Appium: 1.3.4
iOS:8.1

In my app, I have a custom view component which contains a button. I am not able to tap on the button.
If I get the pageSource, it do not show the id of the button but it shows the custom component id. Is there any way in which I can access the button?

Thanks.

I guess the trick is to set isAccessibilityElement to TRUE in each of your custom views. That might be all that’s needed. Do let us know if it works.