fix template cpp not compiled in ipad retina
Merge pull request #3656 from dabingnn/release30_bug_hot_fix

fix template cpp not compiled in ipad retina[ci skip]