Replaced constant which return current ios version

Fixed toolbar color change problem when deployment target on pods is lower than 7.
http://stackoverflow.com/questions/10349752/iphone-os-version-min-required-does-not-return-deployment-target