Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-23-2008, 07:32 PM   #1 (permalink)
Registered Member
 
tkilmer's Avatar
 
Join Date: May 2008
Posts: 583
Default UIWebView

I am trying to set up a webview within my program. If you did not read one of my other threads, it is to bypass copyright laws. I tried to watch the tutorial but it is not working and I am doing it by hand. So far I have:
Code:
	UIWebView *tempView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 400)];
NSURL *test = [NSURL URLWithString@"www.google.com"];
	[tempView loadHTMLString:@"www.google.com" baseURL:test];
This was just to get an idea of how the webview works so i can implement it heavily later. A couple questions, how can I use one of the images that the site shows in the program, and why does it not even display the view. The latter question being the more important. I try to load it and it is just a white frame where it is suppose to be. What is the proper way to load it. I just want it to be declared and created in this area. BTW, it does not show it in the code but I did add it to the subview.

Thanks
Tkilmer
tkilmer is offline   Reply With Quote
Old 06-23-2008, 07:59 PM   #2 (permalink)
Registered Member
 
tkilmer's Avatar
 
Join Date: May 2008
Posts: 583
Default Re: UIWebView

Ok...figured out how to get the view to display the websites. For anyone interested in how I did this, here is how I did:
Code:
UIWebView *tempView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 400)];
	NSURL *test1 = [NSURL URLWithString:@"http://www.google.com"];
	NSURLRequest *test = [NSURLRequest requestWithURL:test1];
	[tempView loadRequest:test];
[self addSubView:tempView];
Now I just need to know how to connect a UIImage to a picture that I click on inside the webview.
tkilmer is offline   Reply With Quote
Old 06-23-2008, 11:21 PM   #3 (permalink)
Sean
 
Join Date: Jun 2008
Location: Connecticut, USA
Age: 26
Posts: 40
Default Re: UIWebView

Could you send me a blank template of an xcode project using a UIWebView? I would greatly appreciate it. My e-mail is sean.helmes@helmesinnovations.com. I can't for the life of me figure out how to properly implement the UIWebView. Thanks!
__________________
Check out Famebooth for iPhone, iPod touch & iPad at http://itunes.apple.com/us/app/fameb...412324686?mt=8
seanhelmes is offline   Reply With Quote
Old 08-15-2008, 11:15 AM   #4 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 28
Default

The sample code project UICatalog on the Apple iphone developer site has code examples for using UIWebView.
ae6rt is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting actual content size of UIWebView? bonehead iPhone SDK Development 8 03-16-2011 06:57 AM
UIWebView using local images? brianr iPhone SDK Development 4 08-10-2009 03:54 AM
Beta 8 - Tab Bar Application with UIWebView Marco iPhone SDK Development 7 06-03-2009 12:37 AM
UIWebView keyboard Fastrak iPhone SDK Development 1 06-19-2008 05:21 PM
UIWebView autoscaling Fastrak iPhone SDK Development 0 05-03-2008 11:30 AM


» Advertisements
» Online Users: 280
22 members and 258 guests
2WeeksToGo, ADY, apatsufas, ckgni, dacapo, Dani77, Fritzer, ghost, HDshot, headkaze, jakerocheleau, joeallenpro, masc2279, mer10, MozyMac, mystic.purple, objch, Rudy, tathaastu, themathminister, timle8n1, Zool
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,878
Threads: 89,223
Posts: 380,731
Top Poster: BrianSlick (7,129)
Welcome to our newest member, olga2000
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:37 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0