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>
Merge pull request #49 from achitre/master

Looks good, thanks