adpate to ios6

1.add autoratioan motheds in demo
2. macro text alignment