PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 28, 2022

[FIXED] How to use _whyIsThisViewNotFocusable in tvOS?

 September 28, 2022     debugging, focus, tvos, uikit     No comments   

Issue

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


Solution

Presumably you're using swift so you shouldn't use obj-c in the debugger. Instead use:

po mainView.performSelector(Selector("_whyIsThisViewNotFocusable")) 


Answered By - Wain
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing