Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How would I disable the Twitter option when using the camera?

edited March 2015 in Questions Posts: 6

I have made a game for my baby daughter and want to share it on iTunes. I exported it into Xcode and set up everything, no problem. Then, I submitted it and waited, expecting such a simple thing to sail through.

However, it was rejected because games for kids cannot have an outside link. The camera button in the controls offers an option to save or post to Twitter in a popup alert.

How do I remove that option, or disable to popup?

Comments

  • IgnatzIgnatz Mod
    Posts: 5,396

    @Simeon, I think this is a question for you.

  • edited March 2015 Posts: 300

    Do you mean the buttons that are at the bottom of the screen of the Codea previewer? Those show up in apps unless you turn them off. I've had a game rejected because I forgot to turn them off.

    displayMode(FULLSCREEN_NO_BUTTONS)

    Put that above your setup function

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Ransom I would suggest that you use FULLSCREEN_NO_BUTTONS for any applications to be published to the App Store.

  • Posts: 6

    Thanks for the replies.

    I already have FULLSCREEN_NO_BUTTONS for the part the kids play, but I also have a few parameter.integer and parameter.boolean controls that the parent can access. I created my own small button on the full screen that changes it to STANDARD, allowing the parent to make adjustments.

    So, when it is in STANDARD, the camera button can be accessed, and consequently, the popup appears with Twitter as an option.

    I have searched through all the code, and the only Tweet / Twitter part I can find is in the plists.

    Any ideas on disabling that outside link so I can get it accepted?

    Many thanks in advance!

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Ransom hmm, there is no mechanism through which you can expose the parameter sidebar but not expose the buttons and output window.

    It is possible to create your own parameter sliders in Lua (perhaps someone around here even has a slider class you can borrow).

    A quick search turns up this Slider class by @Luatee:

    http://codea.io/talk/discussion/6150/a-more-accurate-slider-free-to-use

  • Posts: 6

    Thanks, Simeon. I'll take a look at the slider you showed.
    Otherwise, all is good with Codea and Xcode!

  • Posts: 415

    @Luatee that slider class seems to have some bugs when the touch is ended. The shader version looks very cool though.

  • Posts: 1,595

    @piinthesky Yes sorry I've noticed that, I've updated it recently and will update the code in the thread.

  • Posts: 6

    Thanks all for the thoughts and advice.
    I ended up removing those controls and just using simple images in the corners for the same results. It got accepted for the app store and is up there, but you know how sales go simple things, niche markets and getting buried by all the others.

Sign In or Register to comment.