title: How to customize UISwitch button in iphone?
body: <p>I created a UISwitch using this code...</p>
  
  <pre><code>UISwitch *switch = [[UISwitch alloc]initWithFrame:CGRectMake(110, 230, 60, 60)];
  [window addSubview:switchView];
  [switchView release];
  </code></pre>
  
  <p>The created button will be....</p>
  
  <p><img src="https://i.stack.imgur.com/Jpub4.png" alt="enter image description here"></p>
  
  <p>The default properties are,</p>
  
  <ol>
  <li>It contains "<strong>ON</strong>" &amp; "<strong>OFF</strong>" states</li>
  <li>The OFF button is <strong>white</strong> &amp; the ON button is in <strong>blue</strong> color</li>
  </ol>
  
  <p>I want to create a customized switch, so that the background color &amp; text in the switch should be changed. Is it possible? Please explain in detail.</p>
  
  <p>Thanks in Advance,</p>
  
  <p>Rajkanth</p>