Detect Ipad or Iphone in Cocoscreator

I am facing an issue in Development of UI. I have set the Canvas to fit height which works fine in all iphones but in tablet it causes the width to be cut.

Is there any way I could distinguish between Ipad or Iphone in cocoscreator. Any help would be much appreciated.

You can check cc.sys.platform value, if it’s cc.sys.IPAD then there you are

2 Likes

I will check this for sure.

This is my use case that I need to achieve based on that , can you check if you can help on that ?