Fixed an issue with drawing of upper and lower borders on iOS 6.1 and iOS 7

Signed-off-by: Aniruddha Chitre <achitre@chenoainc.com>