Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>a) How do I know which instances of a class work with the appearance property? For e.g. since UITableView conforms to the UIAppearance protocol I was thinking I could do something like</p> </blockquote> <p>You look in the header of the class (and the headers of all the superclasses). Any method that has <code>UI_APPEARANCE_SELECTOR</code> next to it is supported for use with the <code>UIAppearance</code> proxy.</p> <pre><code>[[UITableView appearance] setBackgroundColor:mytableViewColor]; </code></pre> <p>The <code>backgroundColor</code> property is not decorated with <code>UI_APPEARANCE_SELECTOR</code> in <code>UIView.h</code>. Thus it is not technically supported for use with the appearance proxy. It will <em>probably</em> work, but (given the lack of method decoration) isn't guaranteed to.</p> <p>From the <code>UIAppearance Protocol Reference</code>:</p> <blockquote> <p>To support appearance customization, a class must conform to the <code>UIAppearanceContainer</code> protocol and relevant accessor methods must be marked with <code>UI_APPEARANCE_SELECTOR</code>.</p> </blockquote> <p>(note "<strong>and</strong> relevant accessor methods <strong>must</strong> be marked..." [emphasis added])</p> <hr> <blockquote> <p>b) Is there a list of all properties that are manipulatable with the appearance property?</p> </blockquote> <p>Is there a single page showing every setter that works with the appearance proxy? I don't know of one, nor is there a way to build the list at runtime.</p> <hr> <blockquote> <p>c) At what point is the appearance customization being called? I was hoping to make changes threw the appearance property at runtime, but unfortunately the changes aren't taking place.</p> </blockquote> <p>You can use the appearance proxy at any point during execution. The changes won't be applied to the affected views until the next time those views have their <code>-layoutSubviews</code> method invoked.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload