Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6217285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:24:00+00:00 2026-05-24T07:24:00+00:00

As of now, I can only do: `UIAlertView* dialog = [[UIAlertView alloc] init]; [dialog

  • 0

As of now, I can only do:

`UIAlertView* dialog = [[UIAlertView alloc] init];
 [dialog setDelegate:self];
 [dialog setTitle:@"New Game"];
 [dialog setMessage:@"Are you sure you want to start a new game? This will overwrite your current game."];
 [dialog addButtonWithTitle:@"Yes"];
 [dialog addButtonWithTitle:@"No"];
 [dialog show];
 [dialog release];

...

- (void) alertView:(UIAlertView *)alert clickedButtonAtIndex:(NSInteger)buttonIndex
{
    if(buttonIndex==0) {
        gametype = 1;
        [[CCDirector sharedDirector] replaceScene:[CCTransitionCrossFade transitionWithDuration:1 scene:[GameScene node]]];
    }
}
`

The bad thing is that the dialog box really does not mix in with the whole theme of the application.

Is there a way I can customize or create a dialogue box that appears?

I’ve heard that customizing UIAlertView has been very controversial to the point of being rejected form the app store. I don’t think I should go with this method. Do you have any suggestions/code I can use?

PS: I have a dialogue box image and yes/no buttons already done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:24:00+00:00Added an answer on May 24, 2026 at 7:24 am

    If you already have a dialog box and YES/NO buttons, then I would just add the dialog box the the layer a sprite with the YES/NO buttons overlaid as CCMenuItemImage(s). Then you can have the no button just hide the visibility of the menu and the dialog box and the yes button replace the scene.

    dialogBox = [CCSprite spriteWithFile:@"dialogBox.png"];
    CCMenuItemImage *yesButton = [CCMenuItemImage itemFromNormalImage:@"yes.png" selectedImage:@"yes.png" target:self selector:@selector(yesSelector)]
    CCMenuItemImage *noButton = [CCMenuItemImage itemFromNormalImage:@"no.png" selectedImage:@"no.png" target:self selector:@selector(noSelector)]
    

    Then in your noSelector method you can just hide the dialog box and in your yesSelector just replace the scene.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In C# we can now construct new objects using the curly brace constructor, i.e.
I've googled for a while now and can only find what processData: false does.
I understand that you can now create MVC-specific user controls, but will my existing
in the System.Linq namespace, we can now extend our IEnumerable's to have the Any()
How do you install Boost on MacOS? Right now I can't find bjam for
Now that I can make useful user controls in WPF (thanks to this stackoverflow
For some weeks now I simply can't run gem install in windows. It sticks
Background: I have a kubuntu laptop right now that I can't use wirelessly, i.e.
Obviously I can do and DateTime.Now.After - DateTime.Now.Before but there must be something more
I read somewhere (can't find it now) that large exception hierarchies are a waste

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.