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 01-25-2010, 11:34 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: MA
Posts: 123
Post WebView not showing

I'm working on an app that when you select a row in a table view it opens up another view (Called BiosDetailController, that loads a html page) that shows some information about a particular member of a band that I know. What happens is that when the row in the table view is selected it shows a blank WebView instead of the html page that I specified.


My Code looks like this:

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
	BiosDetailController *bioDetailController = 
	[[BiosDetailController alloc] initWithNibName:@"BiosDetailController" bundle:nil];
	
	bioDetailController.detailURL= [[NSURL alloc] initWithString: 
			[[[memberData objectAtIndex:indexPath.section] objectAtIndex: indexPath.row] objectForKey:@"url"]];
	
	bioDetailController.title= 
	[[[memberData objectAtIndex:indexPath.section] objectAtIndex:indexPath.row] objectForKey:@"name"];
	
	[self.navigationController pushViewController:bioDetailController animated:YES];
	[bioDetailController release];
}

/* Creates the information and put it in the memberData Array */
- (void)createMemberData {
	
	NSMutableArray *members; 
	
	memberSections = [[NSMutableArray alloc] initWithObjects:@" ", nil];
	
	members = [[NSMutableArray alloc] init];
	
	[members addObject:[[NSMutableDictionary alloc]
						initWithObjectsAndKeys:@"Ali", @"name", @"ali.png", @"picture", 
						@"http://bios.scarletfade.com/ali.html",@"url", nil]];
	[members addObject:[[NSMutableDictionary alloc]
						initWithObjectsAndKeys:@"Jordan", @"name", @"Jordan.png", @"picture", 
						@"http://bios.scarletfade.com/jordan.html",@"url", nil]];
	[members addObject:[[NSMutableDictionary alloc]
						initWithObjectsAndKeys:@"Jaimee", @"name", @"Jaimee.png", @"picture", 
						@"http://bios.scarletfade.com/Jaimee.html",@"url", nil]];
	[members addObject:[[NSMutableDictionary alloc]
						initWithObjectsAndKeys:@"Jake", @"name", @"Jake.png", @"picture", 
						@"http://bios.scarletfade.com/Jake.html",@"url", nil]];
	
	memberData = [[NSMutableArray alloc] initWithObjects:members, nil];
	
	[members release];
}
Is there something in these two methods that I am not implementing properly? Or am I just missing a step?

Any help would be appreciated.
nd049 is offline   Reply With Quote
Reply

Bookmarks

Tags
html page, table view, web view

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: 245
18 members and 227 guests
ADY, Alsahir, beleg_1998, Dani77, diyora, iDifferent, iph_s, JamesCahall, JasonR, mer10, Monstertaco, prchn4christ, Robiwan, Rudy, smithdale87, Speed, spiderguy84, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,755
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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