How can I use transparent background in Corona Enterprise?

I know to use transparent background in CoronaCards iOS.

But I can not use it in Corona Enterprise iOS.

I know Android doesn’t support it even CoronaCards.

How can I use it?

Thank you. (-:

I’m not sure what result is expected… Corona enterprise is set up so you’re running Corona as Main view/window. I can’t really recommend anything besides trying something like 

  • (void)didLoadMain:(id<CoronaRuntime>)runtime
    {
        GLKView *cv = (GLKView*)[[runtime appViewController] view];
        if(cv)
        {
            cv.opaque = NO;
            cv.layer.opaque = NO;
            cv.backgroundColor = [UIColor clearColor];
            cv.layer.backgroundColor = [[UIColor clearColor] CGColor];
        }
    }

and 

display.setDefault( “background”, 0, 0, 0, 0 )

in Lua.

But again, I’m not sure what result is expected from Enterprise app.

Transparency on Android’s GL view is made really hard for some unknown to developers reason.

I added code below.

@class GLKView;

 

but it doesn’t support opaque, layer, …

How can I use it?

 

Thank you. (-:

I resolved.
 

UIView *cv = (UIView*)[[runtime appViewController] view];

if(cv)

{

    cv.opaque = NO;

    cv.layer.opaque = NO;

    cv.backgroundColor = [UIColor clearColor];

    cv.layer.backgroundColor = [[UIColor clearColor] CGColor];

}

But I can not add another UIView under CoronaView.

Thank you. (-:

I’m not sure what result is expected… Corona enterprise is set up so you’re running Corona as Main view/window. I can’t really recommend anything besides trying something like 

  • (void)didLoadMain:(id<CoronaRuntime>)runtime
    {
        GLKView *cv = (GLKView*)[[runtime appViewController] view];
        if(cv)
        {
            cv.opaque = NO;
            cv.layer.opaque = NO;
            cv.backgroundColor = [UIColor clearColor];
            cv.layer.backgroundColor = [[UIColor clearColor] CGColor];
        }
    }

and 

display.setDefault( “background”, 0, 0, 0, 0 )

in Lua.

But again, I’m not sure what result is expected from Enterprise app.

Transparency on Android’s GL view is made really hard for some unknown to developers reason.

I added code below.

@class GLKView;

 

but it doesn’t support opaque, layer, …

How can I use it?

 

Thank you. (-:

I resolved.
 

UIView *cv = (UIView*)[[runtime appViewController] view];

if(cv)

{

    cv.opaque = NO;

    cv.layer.opaque = NO;

    cv.backgroundColor = [UIColor clearColor];

    cv.layer.backgroundColor = [[UIColor clearColor] CGColor];

}

But I can not add another UIView under CoronaView.

Thank you. (-: