To debug the focus issues _whyIsThisViewNotFocusable
method is available in the tvOS, But in debug in shouldUpdateFocusInContext
with this command like this po [mainView _whyIsThisViewNotFocusable]
or po mainView _whyIsThisViewNotFocusable
it gives me error :
error: <EXPR>:1:9: error: consecutive statements on a line must be separated by ';'
mainView _whyIsThisViewNotFocusable
So what is the correct use of _whyIsThisViewNotFocusable ?
I seen this question in some stack-overflow answers but because of less reputation i can't comment in that post/answer
Presumably you're using swift so you shouldn't use obj-c in the debugger. Instead use:
po mainView.performSelector(Selector("_whyIsThisViewNotFocusable"))