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-27-2008, 08:03 PM   #1 (permalink)
Registered Member
 
Marco's Avatar
 
Join Date: Apr 2008
Posts: 69
Default Beta 8 - Tab Bar Application with UIWebView

I have installed Beta 8 and I created a New Tab Bar Application but I am having issues in trying to make the UIWebView work.

1. Create a New Tab Bar Application
2. Open up the SecondView.xib in IB, remove label and add a UIWebView
3. Select the File's Owner Icon and add an Outlet called webView, with type UIWebView
4. Connect from the File's Owner webView Outlet to the UIWebView control
5. Add to FirstViewController.h the IBOutlet UIWebView *webView;
6. Build and Go, select the Tab Bar called Second and I receive __TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION__

If I go back and open the SecondView.xib file in IB and remove the webView Outlet connection to the UIWebView control, I can Build and Go and I select the Tab Barc called Second and the UIWebView shows up without error.

At this point I cannot figure out what I am doing wrong in order to automatically open the UIWebView to a specific URL. (I know I did not add the code to open up the URL yet because of my error above).

Thanks
__________________
Peace in Christ
Marco Napoli
http://www.ourlovingmother.org
Marco is offline   Reply With Quote
Old 06-28-2008, 11:34 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2008
Posts: 235
Default Re: Beta 8 - Tab Bar Application with UIWebView

Yeah, I had the same problem too. You should file a bug with Apple since this seems to be a common problem. I don't have the project I had the error anymore because I completely rewrote my app (again).

PM me with a message and I can give you a template that works in beta 8.
__________________
My apps:
Interviews
Pocket Lab Values
dagamer34 is offline   Reply With Quote
Old 07-07-2008, 09:17 AM   #3 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 1
Default Re: Beta 8 - Tab Bar Application with UIWebView

Hi,
I was solved a similar problem with dagamer34's help.

1.Make new project with "Tab Bar Application" template.
2.Add "IBOutlet id label;" In @Interface of "FirstViewController.h".
3.Link label and File's Owner In "SecondView.xib".
4.Build and run, then termination will occur when select second tab.
|
5.Open "MainWindow.xib" and select second tab.
6.Change Class of View Controller (Second) to "FirstViewController".
7.Build and run, then app will go well.

Ryokmd
ryokmd is offline   Reply With Quote
Old 07-07-2008, 03:17 PM   #4 (permalink)
Registered Member
 
Marco's Avatar
 
Join Date: Apr 2008
Posts: 69
Default Re: Beta 8 - Tab Bar Application with UIWebView

Hi ryokmd,

Thanks for the tip, step #6 is what made it work for me. dagamer34 also helped me with this issue.
__________________
Peace in Christ
Marco Napoli
http://www.ourlovingmother.org
Marco is offline   Reply With Quote
Old 07-08-2008, 09:44 PM   #5 (permalink)
Registered Member
 
Join Date: Jun 2008
Posts: 235
Default Re: Beta 8 - Tab Bar Application with UIWebView

dagamer34 is god!
__________________
My apps:
Interviews
Pocket Lab Values
dagamer34 is offline   Reply With Quote
Old 07-09-2008, 08:38 PM   #6 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 41
Default Re: Beta 8 - Tab Bar Application with UIWebView

Hi all,

I'm fairly new to Objective-C and iPhone SDK.

Could someone please explain exactly what is described above? I tried step-by-step, and still get a EXCEPTION_ERROR with the following report:

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x454060> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key webView.'

I don't understand why step #6 made the difference, but it is still not working for me. I have been unable to have a Tab Bar with a WebView in one of the tabs views. Am I missing something basic?

Could anyone please offer some explanation of code to achieve this 'simple' interface?
HoofSC is offline   Reply With Quote
Old 07-10-2008, 01:29 AM   #7 (permalink)
Registered Member
 
Marco's Avatar
 
Join Date: Apr 2008
Posts: 69
Default Re: Beta 8 - Tab Bar Application with UIWebView

Hi HoofSC,

Find below the steps that I did (with the help of dagamer34) and it works.

1. Create a New Tab Bar Application
2. Open up the SecondView.xib in IB, remove label and add a UIWebView
3. Select the File's Owner Icon and add an Outlet called webView, with type UIWebView
4. Connect from the File's Owner webView Outlet to the UIWebView control (save)
5. Add to FirstViewController.h the IBOutlet UIWebView *webView;
6. Open up the MainWindow.xib, Select the Second Button, under the View Controller Identity in the Class type in FirstViewController. Save and close
7. Build and Go, select the Tab Bar called Second and it works
Attached Files
File Type: zip TabBar.zip (18.2 KB, 345 views)
__________________
Peace in Christ
Marco Napoli
http://www.ourlovingmother.org

Last edited by Marco; 07-15-2008 at 01:09 AM. Reason: Sample iPhone Project
Marco is offline   Reply With Quote
Old 06-03-2009, 12:37 AM   #8 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 13
Thumbs down

Hrmm ... I guess the SDK has changed ... because opening this with xcode 3.1.2 - hangs with the following error:-

2009-06-03 14:33:47.525 tabbar[47227:20b] Unknown class tabbarAppDelegate in Interface Builder file.
2009-06-03 14:33:47.549 tabbar[47227:20b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICustomObject 0x5241b0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.'
sikosis 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
UIWebView using local images? brianr iPhone SDK Development 4 08-10-2009 03:54 AM
UIWebView tkilmer iPhone SDK Development 3 08-15-2008 11:15 AM
UIWebView keyboard Fastrak iPhone SDK Development 1 06-19-2008 05:21 PM
Launch mail application from an iphone application satyanarayanagv iPhone SDK Development 1 06-12-2008 04:04 AM
UIWebView autoscaling Fastrak iPhone SDK Development 0 05-03-2008 11:30 AM


» Advertisements
» Online Users: 249
18 members and 231 guests
ADY, Alsahir, Dani77, Desert Diva, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,761
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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