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 896965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:48:51+00:00 2026-05-15T14:48:51+00:00

I found a page ( http://itunes.apple.com/linkmaker ) to get the iTunes url for a

  • 0

I found a page (http://itunes.apple.com/linkmaker) to get the iTunes url for a specific page which I assume should direct the user out of my app and into the corresponding page in the app store.

I have never done this or any other UIWebView stuff but after some searching I found some code that I thought would work that uses UIApplication.h.

My code is:

#import <UIApplication.h>

//...in a tableView....
case 8:
- (BOOL)openURL:(NSURL *) http://itunes.apple.com/us/app/lockbox-pro/id288460603?mt=8&uo=4;
break;

openURL has an error saying that it is undeclared – but I imported the UIApplication.h file. Then I saw that the UIApplication import also had an error on it. I don’t think that I want to use UIWebView because from what I understand, that opens up the URL in the app itself – I want to direct the user to the App Store. Where am I going wrong?

EDIT: Okay, I changed it to a simple button that is supposed to close the app and bring the user to the itunes page:

- (IBAction) pressedFull {
[[UIApplication sharedApplication] openURL:[NSURL urlWithString:@"http://www.google.com"]];

}

I linked it in IB – it still crashes the app when the user clicks on it.

  • 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-15T14:48:52+00:00Added an answer on May 15, 2026 at 2:48 pm

    Your code has a number of things wrong in just one line. First, you’re typing the method signature rather than using the method properly (ie, sending a message to an object). Second, you’re not enclosing the string.

    Try this:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://yoururlhere"]];
    

    With respect, you should review the Learning Objective-C: a Primer thoroughly until you are more comfortable with the syntax as well. A quick look at some of your other questions suggests this is your biggest issue. You’ll be doing yourself a huge favor by setting all else aside and concentrating on getting Objective-C well and truly under your belt before continuing.

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

Sidebar

Related Questions

Test Page URL: http://www.guygar.com/inception/ultra/indexCopy.html I am new to this and searching SO I found
I've found this page about the Twitter search API and some operators : http://search.twitter.com/operators
I need to redirect the user to page not found page if the url
I'm trying to get the basic information array on this page http://www.facebook.com/pages/Nichi-Vendola/38771508894?sk=info I'm using
i see a page http://input.mozilla.com/en-US/feedback#happy from mozilla and i found something special their. page
Okay so for this page: http://www.facebook.com/ESPN?sk=app_224097940938597 Which appears on the left hand bar between
I am following the tutorial i found in this page http://javahunter.wordpress.com/2010/09/25/integrating-captcha-in-jsf-2-0/ to integrate a
I found that page: http://erikej.blogspot.com/2009/04/sql-compact-3rd-party-tools.html There are a lot of tools but it is
I have a link http://mysite.com/username which redirects to profile page of current username.. My
This should be ridiculously simple. I found the man page here: http://www.scons.org/doc/HTML/scons-man.html Directly from

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.