[iPhone development] How to load the App Store directly from an app?

I need to figure out how to load the app store from one of my applications by clicking a button. The code is relatively easy to load say a website. But when I use this code:
-(IBAction)goToAppStore;
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.com/apps/appname"]];
it does not work, because it says too many redirects occurred.
Is there a way to load the app store (and load into a specific app info view) directly from the app, instead of loading a website to load the app store?
Thanks very much,
LOQ123

Thank you.
But I using the one line code I had too many redirects. So, I needed the latter code, which didn't load the app store until all the redirects have happened. Unfortunately I don't understand this code:
// Process a LinkShare/TradeDoubler/DGM URL to something iPhone can handle
- (void)openReferralURL:(NSURL *)referralURL {
NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest:[NSURLRequest requestWithURL:referralURL] delegate:self startImmediately:YES];
[conn release];
// Save the most recent URL in case multiple redirects occur
// "iTunesURL" is an NSURL property in your class declaration
- (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response {
self.iTunesURL = [response URL];
return request;
// No more redirects; use the last URL saved
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
[[UIApplication sharedApplication] openURL:self.iTunesURL];
I'm know where to implement the code, however I don't know where to put my link in inside the specific code up above.
Please help me
Thanks very much

Similar Messages

  • I tried to play candy crush, but when i launch, app closed. I tried all (reset, restart, reload, etc.) I have the app on my pc, but even if i try to sync, the app do not apply on my iphone. When i load the app direct on my iphone, same proplem, can t open

    i tried to play candy crush, but when i launch, app closed. I tried all (reset, restart, reload, etc.) I have the app on my pc, but even if i try to sync, the app do not apply on my iphone. When i load the app direct on my iphone, same proplem, can t open

    Thank you for your help are you aware of any apps that will work the iso 4.2.1 system that will let you watch movies on the phone. Also I tried to down load something else the other day and got message that Safari wont let you open this is ther any to see if i have the latest safari on my phone?

  • How to load the .xml file list from 'C:\Drag_list\Modified' into xmltype tb

    Hi all experts,
    I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
    is there anyone know why
    SQL> create or replace directory XMLDIR as '/xdb/faq/testdata'
    2 /
    SQL> set long 10000 pages 200 lines 150
    SQL> --
    SQL> select xmltype(bfilename('XMLDIR','2003.xml'),nls_charset_id('AL32UTF8'))
    2 from dual
    worked. but
    SQL> create or replace directory XMLDIR as 'C:\Drag_list\Modified';
    SQL> select xmltype(bfilename('XMLDIR','2011.xml'),nls_charset_id('AL32UTF8'))
    from dual
    did not work?
    IS there any way I can load the .xml file list from 'C:\Drag_list\Modified' into xmltype table?
    Thanks.

    did not work?Generally we'll need a bit more info than "it didn't work", was there an ora-X error message? What was the error?
    Assuming you're on *nix a 'C:\<folder name>\...' directory spec just plain won't work, the directory has to point to a valid storage location on the database server host.
    Try a host command (at the database server) and make sure the .xml file name and location is valid, in sqlplus a "bang" (exclamation) runs a host command, i.e.:
    SQL> !ls -l /xdb/faq/testdata
    ... usr grp ... 2003.xml
    ...But if you are on windows, its the `host` command:
    SQL> host dir c:\drag_list\modified
    mm/dd/yyyy ... 2011.xml
    ...  The create directory ... as ... must point to a valid storage location for it to work, at least that is step one.

  • How to load the .xml file list from 'C:\Drag_list\Modif into xmltype table?

    Hi all experts,
    I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
    is there anyone know why
    SQL> create or replace directory XMLDIR as '/xdb/faq/testdata'
    2 /
    SQL> set long 10000 pages 200 lines 150
    SQL> --
    SQL> select xmltype(bfilename('XMLDIR','2003.xml'),nls_charset_id('AL32UTF8'))
    2 from dual
    worked. but
    SQL> create or replace directory XMLDIR as 'C:\Drag_list\Modified';
    SQL> select xmltype(bfilename('XMLDIR','2011.xml'),nls_charset_id('AL32UTF8'))
    from dual
    did not work?
    IS there any way I can load the .xml file list from 'C:\Drag_list\Modified' into xmltype table?
    Thanks.
    Edited by: Cow on Apr 13, 2011 12:58 AM

    This is a question better suited for the sql and pl/sql support forum, since it is NOT an APEX based question..: PL/SQL
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How to change the itunes store language from german to english

    The language on iTunes store and apps store on my iPad is set to German, how can I  hange it to English?

    Katjoh,
    Each iTunes country-specific Store has only certain languages available.  For example the iTunes Stores in Germany and Austria can only be used in German, while the Switzerland store has English, German, and French.
    For more information,, check this document:
    iTunes: Changing the display language

  • Cannot Load the iTones Store page from iTones and collect apps Update

    My iTune account and credit card am belonging to Hong Kong, but often travel to different countries. I have recently purchased iPhone and MacBook Pro, and also purchased some apps when I was staying in Hong Kong.
    This week I visit Singapore and noticed that there are two purchased apps has update. When I click "Update All", it said it was disallowed for my account to download apps in Singapore.
    After studying a lot of discussion thread, I think I neglected an important legal term that I cannot purchase or rental apps outside Hong Kong.
    However, here I am not trying to access Singapore iTunes apps store, but only visit Hong Kong iTunes apps store. Would there be any possible way for me to only visit Hong Kong iTunes apps store and purchase or collecting apps update?
    Right now, I even cannot use iTunes to access iTunes apps store home page. The loading of the iTunes apps store page would stop in the middle. Perhaps iTunes would really check my own public ip address. I connect to internet through Singapore local carrier 3G data access.
    Now, many people in the world would travel or even move between countries frequently. Most of Apple fans are willing to spend money on valuable apps, songs or movies. It is pretty ridiculous for blocking us accessing other countries' iTunes store. Even it is copy right issues, at least it should allow me to access my own country iTunes apps store, when I am physically staying at oversea.
    Please help suggest me any kind of solution for my situation.

    After a month and I am back to Hong Kong, I called to local AppleCare for assistance. Finally my problem has to be fixed by resetting iTunes preference. Here below is the procedure:
    0. Quit iTunes application
    1. Click the Finder icon in the Dock.
    2. Choose Go to Folder from the Go menu.
    3. Type /Library/Preferences
    4. Click Go.
    5. In the Finder window, locate the file named com.apple.iTunes.*
    6. Drag all those com.apple.iTunes.* files to desktop or trash
    7. Open iTunes application
    8. Follow the instruction to setup the iTunes again by clicking Yes
    9. After loading all your original audio files, click to iTunes store and try Sign In
    With above procedures, now I can access to iTunes and sign in with my account.
    AppleCare also said this is part of regular iTunes troubleshooting procedure. She guided me to open a new testing user account in my Mac and open iTunes there. I found that I can access to iTunes Store and sign in with my account. Therefore, it means the iTunes access issue is not because of my computer internet connection issue, but related to my own Mac account iTunes preference setting. That's why she guided me with above procedure to reset iTunes preference.
    She said there is a lot of solution about (-50) error documented in "http://support.apple.com/kb/TS3288".
    I appreciate very much for this AppleCare technical support. She is so nice and patient for giving me instruction step by step. However, I forgot what her name is. She is worth for being praised.

  • How to load the JSP Source Code from Browser

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ).
    The processed in those JavaBeans files and for output to Browser using JSP File.
    And I'm using JBuilder7 Software for building my applicaton.
    I already tested my source through JBuilder ( Applet Viewer ) and my source is running well but I got problem when to load that JSP file through Browser ( IE 6 ) with URL.
    Can anybody help me with this ?
    Best Regards,
    Yeppy S.

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ).
    The processed in those JavaBeans files and for output to Browser using JSP File.
    And I'm using JBuilder7 Software for building my applicaton.
    I already tested my source through JBuilder ( Applet Viewer with TOMCAT Virtual Machine ) and my source is running well but I got problem when to load that JSP file through Browser ( IE 6 ) with URL.
    I put my source at F:\Source\Kiosk9 and my JSP file at F:\Source\KiosK9\defaultroot.
    And the JavaBeans Files at F:\Source\KiosK9\src\kiosk9.
    And the name of the package is kiosk9.
    My structure directory :
    F:\Source\KiosK9
    F:\Source\KiosK9\bak
    F:\Source\KiosK9\classess
    F:\Source\KiosK9\defaultroot
    F:\Source\KiosK9\src
    F:\Source\KiosK9\tomcat
    This directory structure was made automatically by JBuilder7 ( F:\JBuilder7 ).
    URL : http:\\localhost:8080\defaultroot\KiosK9Jsp.jsp
    And the error is :
    "Socket Error
    Connection refused by Remote Host"
    Can anybody help me with this ?
    Best Regards,
    Yeppy S.

  • How to delete the unwanted entries directly from the UWL of MSS

    Hi experts
    I see an unwanted item stuck in WL of approver but not in his
    inbox how can i delete this entry form UWL,ihave tried refreshing UWL but the problem still persists please explain.
    when trying in the dev system
    *I actually applied leave from a test user
    his manager is able to view this workitem in his inbox
    then went into the background SAP and manually completed the workflow
    now if i go to the managers inbox i dont see it there
    but i still see it in UWL
    Could there be any reason for this,Please advice*
    Thanks in advance for your anticipated cooperation

    Hello,
    It is not easily possible to delete the workitems from UWL in MSS except using Batch program in backend ECC.
    Check again in the ECC, the workflow is got trigered and there is surely workitem in the manager's SAP Inbox. Check the tcode swia, enter the workflow task number and the workflow is got triggerred.
    Use swi5 tcode to see the Completed Workitems and to be completed workitems for that Employe (manager).
    The other reason could be.....somebody might hv executed this wf item, but still lying in UWL lists in  MSS.
    Try to re-register the system using UWL Wokflow Administrator in System Administration.
    Hope this helps.
    Regards,
    Anil Kumar.

  • How to Load an app to iPad using command line

    Hello,
    I am trying to build an iOS app and load it to an iPad where I want to run an automated test on it from command line.  I do not wish to use Fruitstrap or any other third party tool/code as I only want to use native apple code.
    xcodebuild -verbose -project iOS_Calc.xcodeproj -configuration Release -sdk iphoneos6.1 -arch armv7 -target iOS_Calc clean build
    xcrun -sdk "iphoneos" PackageApplication -v "$project_dir/build/Calc.app" -o "$project_dir/build/Calc.ipa" --sign "$provisioning_profile" --embed "$project_dir/$mobileprovision"
    Above is the script I have so far to build the app, but I dont know how to load it to an iPad via command line. Does anyone know how to load the .app to iPad device?

    I'm also interested. Not only load but also run.

  • Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    iOS 7 allows you to have your apps update automatically. Therefore, the list of what has been updated stays so that you can see what was updated, when and what the release notes say. It has been suggested that they list has a limit, much like Recents. Currently, there is no way for the user to delete the entries manually. Just try not to look at them.

  • TS1702 The app game that I bought for iphone is not available in the itunes store anymore. How can I get it back on my iphone 4

    The app game that I bought for iphone is not available in the itunes store anymore. How can I get it back on my iphone 4

    If it's no longer in the store then you won't be able to re-download it - do you have a copy of it on your computer's iTunes (or on a backup) that you could sync back to your phone ?

  • Is there any limitation on how many apps a developer can upload to the apple store?

    Hi ,
    I am planning to sell the same app to several customer ( clothing shop owners ) and I wonder if there is any kind of limitation on the number of apps a developer can upload to the apple store.
    Do you think there will be any problem because the app is the same? ....note: The apps is almost the same but it getsdifferent info ( products, prices...etc ) from the server part.
    Thanks in advance.

    Do you Know INDITEX ( it is a company holding form by several brands : Zara, Uterque, Zara Home...etc all has its own iOS app working with the same functionality: See company, choose products , find stores. Same as mine.
    I will upload apps for small business , same skeleton and functionality but different details, pictures, logos...etc which change. Every of my clients should have the right to have its own store on appleStore , shouldn´t they? It makes sense to me...It may not make it to Apple. 
    Thanks

  • After updating my iphone 5s to ios 8.0.2, I am not able to use watsapp and line properly, iphone automatically comes out of the apps after few mins. Please suggest how to fix it.

    After updating my iphone 5s to ios 8.0.2, I am not able to use watsapp and line properly, iphone automatically comes out of the apps after few mins. Please suggest how to fix it.

    I had this same problem with what's app.  There is a new update for the app on the app store which is compatible with ios8.  Update the app, or delete it and re-add it.  I found a lot of apps weren't compliant with ios8, but after updating everything worked fine.

  • I downloaded an app to a computer that is synced to my iphone. So I copied the app to my ipad synced computer, but it does not recognized the app. How can I get the app onto my ipad library?

    I downloaded an app to a computer that is synced to my iphone. So I copied the app to my ipad synced computer, but it does not recognized the app. How can I get the app onto my ipad library?

    Store>Check for Available Downloads

  • How can I delete apps off of my iPhone 4? I know the apps will begin to shake, but the "X" doesn't appear like it's suppose to. Help, please!!!!

    How can I delete apps off of my iPhone 4? I know the apps will begin to shake, but the "X" doesn't appear like it's suppose to. Help, please!!!!

    What apps are you trying to delete? Apps that come on the phones cannot be deleted in this fashion. Only apps you purchase from the app store can be deleted.

Maybe you are looking for

  • Unable to find data in s677 table

    Hi I had maintained planned data in md63 for month 1-5 of 2012 but unable to find it in table s677, help.

  • Connecting Printer and HDD to Airport Extreme (windows)

    I have gone step by step and the bonjour keeps freezing when I tell it to finish the printer setup. The computer will recognize the printer but will not print. I also tried connecting a usb hdd to the AE and in the utility it shows up but not under m

  • Problem in deleting BP in CRM

    I was trying deleting employee from CRM. First, I run the t-code BUPA_PRE_DA, The system returns message Business Partner has status 'Flaged for Deletion'. Second, I run the t-code BUPA_DEL, the system returns the message No Business Partner Deleted.

  • Updraded to iTunes 8.0.1, lost 3/4 of my library

    I did the upgrade to iTunes 8.0.1, all went well, when I opened iTunes folowing the upgrade, most of my library was missing. This included both albums imported from CD's and also purchased music from iTunes itself. I tried a restore back to the origi

  • Match and iCloud storage limit

    My iCloud account for the first time has sent me a message saying that my storage has reached it's limit; also advising that my iPhone can not be backed up any longer.  Is my service with iTunes Match affected by this status, meaning that Match also