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

Featured Member Applications

TanZen ($0.99)

Endless Walls ($0.99)

Air Hockey ($0.99)

SUPER STRIKE - Motion Bowl ($0.99)

BarSlot ($0.99)

MeterRead ($0.99)

Colorblind Helper ($4.99)

gContacts ($1.99)

ProgCalc ($1.99)

Forex On The Go Lite (FREE)

HUE knewit! ($0.99)

Want your application to be advertised here?

» Advertisements


Visit our friends over at The App Show! Steve and Dave produce a weekly show shining a light on the iPhone 2.0 software and the applications being developed by the amazing development community for the iPhone SDK!
» Online Users: 83
20 members and 63 guests
Alex.be, audibles, blackyE, bugnote, bykestar, cjgogo, cmezak, colinhumber, dapan, dougdawson, Ed99, jclardy, jeff_lamarche, mef, mwt, RickMaddy, StatCoder, tappedOut, wdmcclendon, Witch_King
Most users ever online was 207, 10-24-2008 at 09:29 AM.
» Stats
Members: 3,917
Threads: 5,626
Posts: 23,287
Top Poster: scottiphone (705)
Welcome to our newest member, mef
Reply
 
LinkBack Thread Tools Display Modes
Old 08-28-2008, 12:01 PM   #1 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 7
Default webview in a tab bar controller

Hello I have a little question.
I have a tab bar controller view made with the UI tool. One of the tab is a web view that I want to show web datas. But I don't figure out how to link my webView outlet with the effective webView that I've inserted in the interface builder.

I have the same problem for TableViews

this is my code

@interface MyNewViewController : UIViewController {

IBOutlet UIWebView *webView;
}

@property (nonatomic, retain) UIWebView *webView;

NSString *urlAddress = @"http://www.google.com";

//Create a URL object.
NSURL *url = NSURL URLWithString:urlAddress;

//URL Requst Object
NSURLRequest *requestObj = NSURLRequest requestWithURL:url;

//Load the request in the UIWebView.
webView loadRequest:requestObj;

Thank you !
yodarks is offline   Reply With Quote
Old 08-28-2008, 01:10 PM   #2 (permalink)
Senior Member
 
Join Date: Aug 2008
Posts: 323
Default

OK. I understand the issue.

1. In IB, is your viewcontroller classed as MyNewViewController?

2. If so, control click on the view controller, or if the viewcontroller was made alone with the initWithNibName:bundle: method, then control click on the file owner. You will see an option "webView" and an open circle to it. click and drag from the circle to your webView.
DevTeamOfOne is offline   Reply With Quote
Old 08-29-2008, 03:28 AM   #3 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 7
Default

Quote:
1. In IB, is your viewcontroller classed as MyNewViewController?
Maybe I have a problem with this what I did is I clicked on the third tab of my bar (where the webview is) and I chose in "class identify" MyNewViewController
Is that right?

Quote:
If so, control click on the view controller, or if the viewcontroller was made alone with the initWithNibName:bundle: method, then control click on the file owner. You will see an option "webView" and an open circle to it. click and drag from the circle to your webView.
Which view controller ? you mean the webview item on my stage ? I made a link already on new referencing outlet file owner -> webView
Is there something wrong?
yodarks 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
Forum Jump

Powered by vBadvanced CMPS v3.0.1

All times are GMT -5. The time now is 07:27 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0