iOS6 Text Centering Issue

After upgrading Xcode, I hadn’t used it much until today when I tried to set the centering property for a label. I discovered that the previously used text centering property, UITextAlignment, is now deprecated. See the image below. Upon checking the documentation, I found that iOS6 introduced a new property, NSTextAlignment. The new property includes Justified and Natural, so out of curiosity, I tried the Natural property on a label. It resulted in an error. ...

March 5, 2013 · 1 min · Zhiya

Creating iOS Push Certificates (JAVA/PHP)

When setting up an iOS push server using Java or PHP, you need to export the aps_developer_identity certificate and the Apple Development Push Services certificate from the developer website and combine them to generate a p12 certificate for Java or a pem certificate for PHP. The application process for the aps_developer_identity certificate and the Apple Development Push Services certificate can be referenced here: http://www.cnblogs.com/hubj/archive/2012/06/14/2549816.html This article focuses on how to combine the certificates. ...

October 19, 2012 · 1 min · Zhiya