fixed deprecation warnings for ios7.
fixed deprecation warning for preferred pop-over sizing.