+ Reply
Results 1 to 6 of 6

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Basic newbie question. How to add a url to an app ?

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Ok as you can see i'm new to this... I have been reading for a week and still not sure.. when i create a single page project i want to
...
  1. #1
    iPhoneaholic towboattrash34's Avatar
    Join Date
    Aug 2009
    Posts
    337
    Thanks
    38
    Thanked 29 Times in 21 Posts

    Default Basic newbie question. How to add a url to an app ?
    Ok as you can see i'm new to this... I have been reading for a week and still not sure.. when i create a single page project i want to be able to click it and go to a certain web page....
    How/were do i add or link the url ?
    IPhone 5s....
    First MacBook Pro 13" I7 2.8Ghz with win7
    1 rooted Thrive
    08 Chevy 2500HD LTZ
    06 Dyna Lowrider
    40ft Raptor toyhauler

  2. #2
    Green Apple truehybridx's Avatar
    Join Date
    Dec 2007
    Location
    Mustang Ridge, Texas, United States
    Posts
    91
    Thanks
    1
    Thanked 10 Times in 10 Posts

    i would say pick up one of these books first Beginning iPhone 4 Development

    You would have that button call a method that gives the UIWebView a load request

    Code:
    - (IBAction)someFunction
    {
        [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://google.com"]]];
    }
    Get the latest info for NoAccSplash Here
    Currently it should work on iOS 4.x - 6.x
    If you'd like to help extend its functionality, the source is also available.

  3. #3
    iPhoneaholic towboattrash34's Avatar
    Join Date
    Aug 2009
    Posts
    337
    Thanks
    38
    Thanked 29 Times in 21 Posts

    Quote Originally Posted by truehybridx View Post
    i would say pick up one of these books first Beginning iPhone 4 Development

    You would have that button call a method that gives the UIWebView a load request

    Code:
    - (IBAction)someFunction
    {
        [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://google.com"]]];
    }
    Yep i have a few things i'm doing/reading and watching everything i can even the Stanford iTune U program... which is better webView or just Nsurl openURL ? For now just creating a single page app that goes to a website... when i learn more coding i will then create a more complex app. And no i do not want to just copy and paste, just need pointed in the right direction.

    Just 1 question and i'll figure the rest out.... which file do i add the code to ? AppDelegate.h/m ViewController.h/m or main.m ?
    IPhone 5s....
    First MacBook Pro 13" I7 2.8Ghz with win7
    1 rooted Thrive
    08 Chevy 2500HD LTZ
    06 Dyna Lowrider
    40ft Raptor toyhauler

  4. #4
    What's Jailbreak?
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iPhone Development
    I think this forum is really informative to me and i am also going to share this forum to my friends.

  5. #5
    Green Apple truehybridx's Avatar
    Join Date
    Dec 2007
    Location
    Mustang Ridge, Texas, United States
    Posts
    91
    Thanks
    1
    Thanked 10 Times in 10 Posts

    that chunk would more or less go in you ViewController class (since thats where the Interface is going to be)
    Get the latest info for NoAccSplash Here
    Currently it should work on iOS 4.x - 6.x
    If you'd like to help extend its functionality, the source is also available.

  6. #6
    iPhoneaholic towboattrash34's Avatar
    Join Date
    Aug 2009
    Posts
    337
    Thanks
    38
    Thanked 29 Times in 21 Posts

    yep youtube is my friend.... i got it... now to learn some more new features...
    IPhone 5s....
    First MacBook Pro 13" I7 2.8Ghz with win7
    1 rooted Thrive
    08 Chevy 2500HD LTZ
    06 Dyna Lowrider
    40ft Raptor toyhauler

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts