title: Compatibility of ios5 and ios6
body: <p>I have a problem regarding incompatibility of ios5 vs ios6</p>
  
  <p>While I was working on my project with ios5</p>
  
  <pre><code>label.textAlignment = UITextAlignmentCenter;
  </code></pre>
  
  <p>then updated to ios6</p>
  
  <pre><code>label.textAlignment = NSLineBreakByTruncatingTail;
  </code></pre>
  
  <p>Once I run my code on the device which ios5 installed, that give me error.</p>
  
  <p>I am about to upload my app to appstore, however I want my app also supports ios5 as well. How I am going to handle both ios5 and ios6!</p>
  
  <p>Thanks in advance!</p>