Results 1 to 2 of 2
Discuss [Alertsheet] with openURL button at the iPhone Developer Exchange - Hackint0sh.org; Hi, i'm creating an native app and all works fine for one thing... In the ...
  1. #1
    Rookie Array

    Join Date
    Feb 2008
    Posts
    22
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [Alertsheet] with openURL button

    Hi,
    i'm creating an native app and all works fine for one thing...

    In the info popup screen (Alertsheet) i try to put an more info button that has to open safari and direct to my site.

    This i what i use

    url = [ [ NSURL alloc ] initWithString: @"http://www.apple.com" ];
    [self openURL: url];

    but when i press the button the app quits but safari doesn't open

    Thanks in advance



  2. #2
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    You have to check whether "self" is an object of UIApplication of not.

    Code:
    UIApplication.h:- (BOOL)openURL:(NSURL*)url;

 

 

Similar Threads

  1. DFU without power button
    By power46 in forum Redsn0w
    Replies: 1
    Last Post: 07-25-2010, 10:51 AM
  2. top button
    By DJA in forum Installation
    Replies: 4
    Last Post: 03-18-2010, 01:54 AM
  3. openurl NSURL problem?
    By The_Kid in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 09-21-2008, 11:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 01:57 AM.
twitter, follow us!