Update of 2011 apps to 2017 for iOS 11 compatability

Folks,

This is a long shot from an inexperienced developer.

I built some very simple Corona based apps using Kwisher PhotoShop plugin in 2011.

I’ve tried to upgrade them to 2017 latest iOS etc, with success, except for one last bug.

The grid like alphabet UI has a dead area in the top right 25% of screen area of the portrait screen, it’s as if there is a dead non clickable area of the screen…as if a rectangle with alpha 0 is stopping the clickable areas underneath from registering the hit.

I can not see what is blocking it  - I’ve tried changing sizes of splash screen and other graphics to see if they are obscuring areas - but with no luck.

I have:

Page.lua

Config.lua

Sprite.lua

Director.lua

I know this is vague with no detail, but if anyone has any hint they can give as to similar problems they have come across  - it would help a lot…

Thanks - Dom

Well I can’t help much with all of that but this the symptom of a display.newRect( x, y, width, height) being drawn.  Under the 2011 version of Corona, display.newRect() drew with x, y meaning it’s top-left corner. When we switched to graphics 2.0, that x, y meant the center of the rectangle.

The effect is that a previously centered rectangle would now be centered at 0, 0 if the x and y are 0, 0.

You can try putting:

graphicsCompatibility = 1

in your config.lua where you set the width and height and it will cause the API’s to revert to their previous behavior. Likely something in Director is assuming graphics 1 settings and that’s what’s causing the issue.

Rob

Rob - Thanks for your reply, that looks promising  - I’m going to work on the apps over the weekend and post response if this resolves the issue…

Cheers - Dom 

Well I can’t help much with all of that but this the symptom of a display.newRect( x, y, width, height) being drawn.  Under the 2011 version of Corona, display.newRect() drew with x, y meaning it’s top-left corner. When we switched to graphics 2.0, that x, y meant the center of the rectangle.

The effect is that a previously centered rectangle would now be centered at 0, 0 if the x and y are 0, 0.

You can try putting:

graphicsCompatibility = 1

in your config.lua where you set the width and height and it will cause the API’s to revert to their previous behavior. Likely something in Director is assuming graphics 1 settings and that’s what’s causing the issue.

Rob

Rob - Thanks for your reply, that looks promising  - I’m going to work on the apps over the weekend and post response if this resolves the issue…

Cheers - Dom