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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 12-10-2010, 11:03 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Germany, Frankfurt
Posts: 30
brush51 is on a distinguished road
Question UIWebView in TabBar doesn't show Page

Hey folks!

Iam new on ios development and since a few days iam working on my first app with TabBar.

I have four TabBarItems and one of each BarItem should load the *.xib with the UIWebView.

I have do it this way:
- New Project in xcode (window based application)
- Created four new UIViewController Subclasses with the *.xib files
- in my ProjectAppDelegate.h IBOutlet UIWebView *webView_google; and the @property for that.
- in the *.m file @synthesize the webView_google
and also:

Code:
- (void)awakeFromNib {
	
	[deliveryPortal loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.de"]]];
	
}
All TabBarItems and their *.xib files works fine. Just the WebView doesn't show the Page. The page ist blank..

Is there any part that i am missing?

Can anybody help and give me tips and recommendation?


thx,
brush51
brush51 is offline   Reply With Quote
Old 12-12-2010, 04:18 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Germany, Frankfurt
Posts: 30
brush51 is on a distinguished road
Default

Nobody there with the same problem? Or someone for help..?
brush51 is offline   Reply With Quote
Old 02-09-2011, 09:08 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 6
devangvyas is on a distinguished road
Default

Quote:
Originally Posted by brush51 View Post
Nobody there with the same problem? Or someone for help..?
Not sure if you are still looking for a solution but I ran into similar situation and spent a few days to resolve it.

The problem was that the webview was not getting initialized in awakeFromNib. NSLog was printing it as null. The solution I found was that I need to force the view in order to load the page. So in your awakeFromNib put following:

Code:
[self view];
This will force your viewDidLoad and there you can load your page.
devangvyas is offline   Reply With Quote
Reply

Bookmarks

Tags
blank, page, tabbar, uiwebview, webview

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



» Advertisements
» Online Users: 384
7 members and 377 guests
chemistry, daudrizek, HemiMG, jeroenkeij, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

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