Fixed some iOS8 related issue, added methods for debugging UIView hierarchy