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

  • Home
  • SEARCH
  • 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 6158721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:00:27+00:00 2026-05-23T21:00:27+00:00

I’m kinda new on programming UIAlertView’s. What i had in mind was to do

  • 0

I’m kinda new on programming UIAlertView’s. What i had in mind was to do a Popup that shows on launch of the application with two more buttons besides the default dismiss button.
One of the buttons would be a link to the appstore and the other would be to dismiss that popup forever.
I’ve already done everything besides the last button.
Any help?

Thank You!

- (void)viewDidLoad {

alert = [[UIAlertView alloc] initWithTitle:@"Rate!" message:@"Your rate is much apreciated" delegate:self cancelButtonTitle:@"Not Now" otherButtonTitles:@"Okay!   ", @"No, Thanks!", nil ];
[alert show];
[alert release];
 }



-(void)alertView:(UIAlertView *) alertView clickedButtonAtIndex:(NSInteger)buttonIndex{

if (buttonIndex == 0) {

}

if (buttonIndex == 1) {

     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/pt/app/designertools/id444778173?mt=8#" ]];

}


}
  • 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-23T21:00:28+00:00Added an answer on May 23, 2026 at 9:00 pm

    You seem to be doing an alert to rate your app in the app store, instead of answering your direct (technical) question, I’ll try to solve the larger issue. You should consider an existing Open Source solution to handle prompting users for reviews, you can control features like how many launches/days later to prompt them.

    I can recommend Appirater by Arash Pyan. What it does is handle the rating portion of the app automatically. It take users right into your App’s review page and its very customizable. The best solution for a new developer! It’s available on GitHub.

    iRate by demosthenese is a similar solution but is cleaner and supports fast app switching.

    Use these “off the shelf” solutions instead! It should work out better rather than handle it yourself! They include documentation and samples on how to customize the features.

    As an aside, I think Apple doesn’t recommend using AlertViews for getting users to rate applications. Use the tools mentioned responsibly. Don’t prompt users too quickly, and make sure that you include a dismiss forever button!

    If you’re here for a technical solution to the issue (ie on Prompt on launch with a dismiss forever button), here’s an overview of what you should do:

    -(void)viewdidload{
    
    //Access NSUSerDefaults and check a variable called launch
    // launch's default value is 0
    if (launch == 0) {
    
        alert = [[UIAlertView alloc] initWithTitle:@"Rate!" message:@"You'll see this everytime you launch until you click Dismiss Forever" delegate:self cancelButtonTitle:@"Not Now" otherButtonTitles:@"Okay!   ", @"Dismiss Alert and Don't Show it to me", nil ];
    [alert show];
    [alert release];
     }
    
    } 
    else
    {
    //nothing
    }
    //continue customizing
    }
    
    -(void)alertView:(UIAlertView *) alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
    
    if (buttonIndex == 0) 
    //Assume this is the Okay Button
     {
    
    //Now use NSUserDefaults and set a variable called launch to 1 
    // the default value for launch should be 0
    // now that its set to 1
         [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"ILoveAlertViews.com" ]];
    
    
    }
    
    if (buttonIndex == 1) {
    //assume this is the dismiss button
    //Now use NSUserDefaults and set a variable called launch to 2
    //2 means that they never want to see it. The AlertView should not be called on the next launch 
    
    
    }
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I am doing a simple coin flipping experiment for class that involves flipping a
I need a function that will clean a strings' special characters. I do NOT

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.