change navigationBar color for iOS6.1
add helper function to ComponentUtil
set offset for iOS6 compatible issue